mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-28 23:03:25 +09:00
optimizer에서 gzip compress를 제거 (특정 브라우저에서 js 오류 발생)
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3464 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
382d023b7a
commit
8c222095d8
1 changed files with 1 additions and 9 deletions
|
|
@ -138,15 +138,7 @@ header("Cache-Control: private, max-age=2592000");
|
|||
header("Pragma: cache");
|
||||
header("Last-Modified: '.substr(gmdate('r', $mtime), 0, -5).'GMT");
|
||||
header("ETag: '.dechex($unique).'-'.dechex($size).'-'.dechex($mtime).'");
|
||||
if(!$cached && file_exists($content_filename)) {
|
||||
$buff = file_get_contents($content_filename);
|
||||
if($type != "css" && strpos($_SERVER["HTTP_ACCEPT_ENCODING"], "gzip")!==false && function_exists("ob_gzhandler")) {
|
||||
header("Content-Encoding: gzip");
|
||||
print ob_gzhandler($buff, 5);
|
||||
} else {
|
||||
print $buff;
|
||||
}
|
||||
}
|
||||
if(!$cached && file_exists($content_filename)) print file_get_contents($content_filename);
|
||||
exit();
|
||||
?>';
|
||||
FileHandler::writeFile($filename, $header_buff);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue