Skip to content
Permalink
Browse files

[core:loader] support PHP configuration `zlib.output_compression=on`

  • Loading branch information
nao-pon committed Oct 24, 2013
1 parent 367e587 commit 500bcb8c0504342fcc30c7c5c0c13bb6504ccf70
Showing with 3 additions and 0 deletions.
  1. +3 −0 xoops_trust_path/modules/xpwiki/loader.php
@@ -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 );
@@ -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' );
}

0 comments on commit 500bcb8

Please sign in to comment.
You can’t perform that action at this time.