mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
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:
parent
7c18ef7a11
commit
0ea54b39ec
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue