From 063345e89e46ae85b03d2dd6da5dc3463b4bd654 Mon Sep 17 00:00:00 2001 From: mark_story Date: Fri, 21 Nov 2008 04:29:22 +0000 Subject: [PATCH] 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 --- app/webroot/css.php | 2 +- cake/console/libs/templates/skel/webroot/css.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/webroot/css.php b/app/webroot/css.php index 7d2b345e0..52b57fee7 100644 --- a/app/webroot/css.php +++ b/app/webroot/css.php @@ -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; ?> \ No newline at end of file diff --git a/cake/console/libs/templates/skel/webroot/css.php b/cake/console/libs/templates/skel/webroot/css.php index 7d2b345e0..52b57fee7 100644 --- a/cake/console/libs/templates/skel/webroot/css.php +++ b/cake/console/libs/templates/skel/webroot/css.php @@ -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; ?> \ No newline at end of file