mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
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:
parent
d80e527e5b
commit
063345e89e
2 changed files with 2 additions and 2 deletions
|
@ -96,7 +96,7 @@ if (!class_exists('File')) {
|
||||||
header("Date: " . date("D, j M Y G:i:s ", $templateModified) . 'GMT');
|
header("Date: " . date("D, j M Y G:i:s ", $templateModified) . 'GMT');
|
||||||
header("Content-Type: text/css");
|
header("Content-Type: text/css");
|
||||||
header("Expires: " . gmdate("D, j M Y H:i:s", time() + DAY) . " GMT");
|
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
|
header("Pragma: cache"); // HTTP/1.0
|
||||||
print $output;
|
print $output;
|
||||||
?>
|
?>
|
|
@ -96,7 +96,7 @@ if (!class_exists('File')) {
|
||||||
header("Date: " . date("D, j M Y G:i:s ", $templateModified) . 'GMT');
|
header("Date: " . date("D, j M Y G:i:s ", $templateModified) . 'GMT');
|
||||||
header("Content-Type: text/css");
|
header("Content-Type: text/css");
|
||||||
header("Expires: " . gmdate("D, j M Y H:i:s", time() + DAY) . " GMT");
|
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
|
header("Pragma: cache"); // HTTP/1.0
|
||||||
print $output;
|
print $output;
|
||||||
?>
|
?>
|
Loading…
Reference in a new issue