Skip to content

Commit 500bcb8

Browse files
committed
[core:loader] support PHP configuration zlib.output_compression=on
1 parent 367e587 commit 500bcb8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

xoops_trust_path/modules/xpwiki/loader.php

+3
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,8 @@
282282
// キャッシュ判定
283283
if ($gzip_fname && is_file($gzip_fname) && filemtime($gzip_fname) >= $filetime) {
284284
// html側/private/cache に 有効な gzip ファイルがある場合
285+
@ini_set('zlib.output_compression', '0');
286+
285287
header( 'Content-Type: ' . $c_type );
286288
header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s', $filetime ) . ' GMT' );
287289
header( 'Cache-Control: max-age=' . $maxage );
@@ -472,6 +474,7 @@
472474
header( 'Etag: '. $etag );
473475
header( 'Content-length: '.$length );
474476
if ($is_gz) {
477+
@ini_set('zlib.output_compression', '0');
475478
header( 'Content-Encoding: gzip' );
476479
header( 'Vary: Accept-Encoding' );
477480
}

0 commit comments

Comments
 (0)