[geeklog-hg] geeklog: Add cache expire in 1 week to the header for the output...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Thu Jul 10 19:42:14 EDT 2014
changeset 9533:fe16e661bea3
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/fe16e661bea3
user: Tom
date: Thu Jul 10 19:18:19 2014 -0400
description:
Add cache expire in 1 week to the header for the output of the Modern Curve theme style.css.php (feature request #0001765)
diffstat:
public_html/layout/modern_curve/style.css.php | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (14 lines):
diff -r 335dfcb8427e -r fe16e661bea3 public_html/layout/modern_curve/style.css.php
--- a/public_html/layout/modern_curve/style.css.php Thu Jul 10 19:09:35 2014 -0400
+++ b/public_html/layout/modern_curve/style.css.php Thu Jul 10 19:18:19 2014 -0400
@@ -148,6 +148,10 @@
// Send correct header type:
header('Content-Type: text/css; charset=UTF-8');
+// Add Cache Expire in 1 week
+header('Cache-control: must-revalidate');
+header('Expires: '.gmdate('D, d M Y H:i:s', time() + 604800).' GMT');
+
header('ETag: "' . $etag . '"');
// Output the contents of each file
More information about the geeklog-cvs
mailing list