Applying patch from 'ruben' updates Date header to comply with RFC 822 and RFC 1123. Fixes #6102

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8035 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
mark_story 2009-02-16 01:05:53 +00:00
parent 55cc02bc08
commit 03ca513f48

View file

@ -95,7 +95,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("Expires: " . gmdate("D, d M Y H:i:s", time() + DAY) . " GMT");
header("Cache-Control: max-age=86400, must-revalidate"); // HTTP/1.1
header("Pragma: cache"); // HTTP/1.0
print $output;