r7434 fixed

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7439 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2010-05-11 10:28:08 +00:00
parent fe09e55c51
commit aff477dd54
3 changed files with 6 additions and 6 deletions

View file

@ -51,7 +51,6 @@ if($type == '.css'){
header("Content-Type: ".$content_type."; charset=UTF-8");
/*
// return 304
if (!empty($_SERVER['HTTP_IF_MODIFIED_SINCE'])) {
$modifiedSince = strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']);
@ -61,12 +60,12 @@ if (!empty($_SERVER['HTTP_IF_MODIFIED_SINCE'])) {
exit;
}
}
*/
header("Cache-Control: private, max-age=2592000");
header("Pragma: cache");
header("Connection: close");
header("Last-Modified: " . substr(gmdate('r', $mtime), 0, -5). "GMT");
//header("ETag: \"'.dechex($unique).'-".dechex($size)."-'.dechex($mtime).'\"");
header("ETag: \"". md5(join(' ', $list)) .'-'. dechex($mtime)."\"");
function printFileList($list){