From 8c222095d8eb32c990d94a4372d7015d8b9daf75 Mon Sep 17 00:00:00 2001 From: zero Date: Fri, 4 Jan 2008 05:28:11 +0000 Subject: [PATCH] =?UTF-8?q?optimizer=EC=97=90=EC=84=9C=20gzip=20compress?= =?UTF-8?q?=EB=A5=BC=20=EC=A0=9C=EA=B1=B0=20(=ED=8A=B9=EC=A0=95=20?= =?UTF-8?q?=EB=B8=8C=EB=9D=BC=EC=9A=B0=EC=A0=80=EC=97=90=EC=84=9C=20js=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20=EB=B0=9C=EC=83=9D)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3464 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- classes/optimizer/Optimizer.class.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/classes/optimizer/Optimizer.class.php b/classes/optimizer/Optimizer.class.php index aac2479a1..0846cae81 100644 --- a/classes/optimizer/Optimizer.class.php +++ b/classes/optimizer/Optimizer.class.php @@ -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);