로그인 위젯의 잘못된 id값 수정 & optimizer의 헤더 출력 값을 변경하여 css가 깨어지는 원인을 제거

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2772 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-10-15 10:45:27 +00:00
parent 544355fe23
commit 87dd165921
8 changed files with 137 additions and 134 deletions

View file

@ -104,8 +104,6 @@
* 압축을 지원하고 캐시 타임을 제대로 이용하기 위한 헤더 파일 구함
**/
// php의 헤더파일 생성
$modified_time = gmdate("D, d M Y H:i:s");
// gzip 압축 체크
if($type!="css" && Context::isGzEnabled()) $gzip_header = 'header("Content-Encoding: gzip");';
@ -116,10 +114,15 @@
$header_buff = <<<EndOfBuff
<?php
header("Content-Type: {$content_type}; charset=UTF-8");
header("Last-Modified: {$modified_time} GMT");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Content-Length: ".filesize('{$content_filename}'));
{$gzip_header}
if(@file_exists("{$content_filename}")) {
@fpassthru(fopen("{$content_filename}", "rb"));
@fpassthru(fopen("{$content_filename}", "r"));
}
exit();
?>