com web/php: Actually cache the page for a month: cached.php
| From: | Paul Dragoonis | Date: | Mon, 10 Mar 2014 17:35:14 +0000 |
| Subject: | com web/php: Actually cache the page for a month: cached.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-22147@lists.php.net to get a copy of this message | ||
Commit: 4ec12bba09b4938d64811317708413304c60ed36
Author: Hannes Magnusson <bjori@mongodb.com> Mon, 10 Mar 2014 10:34:40 -0700
Parents: 439f7404168c0afa6890b1e37021dbbde667e486
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=4ec12bba09b4938d64811317708413304c60ed36
Log:
Actually cache the page for a month
Changed paths:
M cached.php
Diff:
diff --git a/cached..php b/cached.php
index 99cda6a..6793c04 100644
--- a/cached.php
+++ b/cached.php
@@ -30,6 +30,7 @@ if (isset($_SERVER["HTTP_IF_MODIFIED_SINCE"]) &&
}
header("Last-Modified: " . $tsstring);
+header("Cache-Control: no-transform,public,max-age=2678400,s-maxage=2678400");
if (substr($abs, -3) == ".js" || substr($abs, -5) == ".json") {
header("Content-Type: application/javascript");