summaryrefslogtreecommitdiff
path: root/itjs.php
diff options
context:
space:
mode:
authorChristian Schneider2014-09-26 11:26:05 +0200
committerChristian Schneider2014-09-26 11:26:05 +0200
commitedd327e75e93162124366d66e03fbbbf681ad7a7 (patch)
treee39ac4f95f18749300132f1e163cd8d0edee38ad /itjs.php
parent42de49cfb16df32142f312f3396d0a8737431901 (diff)
downloaditools-edd327e75e93162124366d66e03fbbbf681ad7a7.tar.gz
itools-edd327e75e93162124366d66e03fbbbf681ad7a7.tar.bz2
itools-edd327e75e93162124366d66e03fbbbf681ad7a7.zip
Also disabled long max-age if there is a c= URL parameter
Diffstat (limited to 'itjs.php')
-rw-r--r--itjs.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/itjs.php b/itjs.php
index 3d7d368..d386e00 100644
--- a/itjs.php
+++ b/itjs.php
@@ -71,7 +71,7 @@ else if (!it::match('\.html$', $file))
if (it::is_live() && !$_REQUEST['retry'])
{
- $keeptime = 0 && $_REQUEST['s'] || $_REQUEST['c'] ? 86400*30 : 900; # long expire if checksum present DISABLED
+ $keeptime = /* $_REQUEST['s'] || $_REQUEST['c'] ? 86400*30 : */ 900; # long expire if checksum present DISABLED
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");
}