mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 19:51:42 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3463 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
f03c984862
commit
382d023b7a
1 changed files with 2 additions and 2 deletions
|
|
@ -126,7 +126,7 @@ $type = "'.$type.'";
|
|||
|
||||
if(isset($_SERVER["If-Modified-Since"])) {
|
||||
$time = strtotime(preg_replace("/;.*$/", "", $_SERVER["If-Modified-Since"]));
|
||||
if($mtime == $time) {
|
||||
if($mtime == $time && $time > '.$class_mtime.') {
|
||||
header("HTTP/1.1 304");
|
||||
$cached = true;
|
||||
}
|
||||
|
|
@ -138,7 +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 && time()>'.$class_mtime.' && file_exists($content_filename)) {
|
||||
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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue