css/js optimizer에서 HTTP_IF_MODIFIED_SINCE 값을 사용하도록 코드 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3471 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-01-07 01:32:12 +00:00
parent 7c18ef7a11
commit 0ea54b39ec

View file

@ -124,8 +124,8 @@ $mtime = '.$mtime.';
$cached = false;
$type = "'.$type.'";
if(isset($_SERVER["If-Modified-Since"])) {
$time = strtotime(preg_replace("/;.*$/", "", $_SERVER["If-Modified-Since"]));
if(isset($_SERVER["HTTP_IF_MODIFIED_SINCE"])) {
$time = strtotime(preg_replace("/;.*$/", "", $_SERVER["HTTP_IF_MODIFIED_SINCE"]));
if($mtime == $time && $time > '.$class_mtime.') {
header("HTTP/1.1 304");
$cached = true;