summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2014-11-02 21:51:18 +0100
committerUrban Müller2014-11-02 21:51:18 +0100
commitdbf5fdd45b2f81afee895fe047153fc43640850c (patch)
treed5dbdb2877f3ec241efece516feb0916077c73fa
parent3024e2749dafeefad44caffe656ccf6b6ff26cbf (diff)
downloaditools-dbf5fdd45b2f81afee895fe047153fc43640850c.tar.gz
itools-dbf5fdd45b2f81afee895fe047153fc43640850c.tar.bz2
itools-dbf5fdd45b2f81afee895fe047153fc43640850c.zip
reenable long max-age now that errors are down
-rw-r--r--itjs.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/itjs.php b/itjs.php
index 86cca64..37028a5 100644
--- a/itjs.php
+++ b/itjs.php
@@ -76,7 +76,7 @@ else if (!it::match('\.html$', $file))
if (it::is_live() && !$_REQUEST['retry'])
{
- $keeptime = $crc == "-" ? 0 : ($crc ? 900 : 900); # long expire if checksum present DISABLED
+ $keeptime = $crc == "-" ? 0 : ($crc ? 30*86400 : 900); # long expire if checksum present
header("Cache-Control: max-age=$keeptime, private"); # proxies should not cache since contents of same url can differ between browsers
header("Expires: " . gmdate("D, d M Y H:i:s", time() + $keeptime). " GMT");
}