Fixing Cache-control headers in css.php to reflect proper HTTP 1.1 spec and agree with Expires header value. Fixes #5777.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7883 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
mark_story 2008-11-21 04:29:22 +00:00
parent d80e527e5b
commit 063345e89e
2 changed files with 2 additions and 2 deletions

View file

@ -96,7 +96,7 @@ if (!class_exists('File')) {
header("Date: " . date("D, j M Y G:i:s ", $templateModified) . 'GMT');
header("Content-Type: text/css");
header("Expires: " . gmdate("D, j M Y H:i:s", time() + DAY) . " GMT");
header("Cache-Control: cache"); // HTTP/1.1
header("Cache-Control: max-age=86400, must-revalidate"); // HTTP/1.1
header("Pragma: cache"); // HTTP/1.0
print $output;
?>

View file

@ -96,7 +96,7 @@ if (!class_exists('File')) {
header("Date: " . date("D, j M Y G:i:s ", $templateModified) . 'GMT');
header("Content-Type: text/css");
header("Expires: " . gmdate("D, j M Y H:i:s", time() + DAY) . " GMT");
header("Cache-Control: cache"); // HTTP/1.1
header("Cache-Control: max-age=86400, must-revalidate"); // HTTP/1.1
header("Pragma: cache"); // HTTP/1.0
print $output;
?>