diff options
author | Urban Müller | 2014-11-02 21:51:18 +0100 |
---|---|---|
committer | Urban Müller | 2014-11-02 21:51:18 +0100 |
commit | dbf5fdd45b2f81afee895fe047153fc43640850c (patch) | |
tree | d5dbdb2877f3ec241efece516feb0916077c73fa /itjs.php | |
parent | 3024e2749dafeefad44caffe656ccf6b6ff26cbf (diff) | |
download | itools-dbf5fdd45b2f81afee895fe047153fc43640850c.tar.gz itools-dbf5fdd45b2f81afee895fe047153fc43640850c.tar.bz2 itools-dbf5fdd45b2f81afee895fe047153fc43640850c.zip |
reenable long max-age now that errors are down
Diffstat (limited to 'itjs.php')
-rw-r--r-- | itjs.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); } |