Skip to content

Commit

Permalink
Applying patch from 'ruben' updates Date header to comply with RFC 82…
Browse files Browse the repository at this point in the history
…2 and RFC 1123. Fixes #6102

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8035 3807eeeb-6ff5-0310-8944-8be069107fe0
  • Loading branch information
markstory committed Feb 16, 2009
1 parent 55cc02b commit 03ca513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/webroot/css.php
Expand Up @@ -95,7 +95,7 @@ function write_css_cache($path, $content) {

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;
Expand Down

0 comments on commit 03ca513

Please sign in to comment.