Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[core:loader] support PHP configuration zlib.output_compression=on
  • Loading branch information
nao-pon committed Oct 24, 2013
1 parent 367e587 commit 500bcb8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xoops_trust_path/modules/xpwiki/loader.php
Expand Up @@ -282,6 +282,8 @@
// キャッシュ判定
if ($gzip_fname && is_file($gzip_fname) && filemtime($gzip_fname) >= $filetime) {
// html側/private/cache に 有効な gzip ファイルがある場合
@ini_set('zlib.output_compression', '0');

header( 'Content-Type: ' . $c_type );
header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s', $filetime ) . ' GMT' );
header( 'Cache-Control: max-age=' . $maxage );
Expand Down Expand Up @@ -472,6 +474,7 @@
header( 'Etag: '. $etag );
header( 'Content-length: '.$length );
if ($is_gz) {
@ini_set('zlib.output_compression', '0');
header( 'Content-Encoding: gzip' );
header( 'Vary: Accept-Encoding' );
}
Expand Down

0 comments on commit 500bcb8

Please sign in to comment.