Permalink
Browse files

Applying patch from 'ruben' updates Date header to comply with RFC 82…

…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...
1 parent 55cc02b commit 03ca513f483744b0e69a8129df9ab5eaca1c6be9 @markstory markstory committed Feb 16, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/webroot/css.php
View
@@ -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;

0 comments on commit 03ca513

Please sign in to comment.