summaryrefslogtreecommitdiff
path: root/itjs.php
diff options
context:
space:
mode:
authorUrban Müller2014-09-25 19:49:34 +0200
committerUrban Müller2014-09-25 19:49:34 +0200
commit42de49cfb16df32142f312f3396d0a8737431901 (patch)
tree85b7d438979f982aef5b5d9b02ec3f1c42942cd5 /itjs.php
parent1b226b0b61b0ee8ecefc743d36a24c125023ef0f (diff)
downloaditools-42de49cfb16df32142f312f3396d0a8737431901.tar.gz
itools-42de49cfb16df32142f312f3396d0a8737431901.tar.bz2
itools-42de49cfb16df32142f312f3396d0a8737431901.zip
expire all scripts, short max-age for testing
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 32f3a16..3d7d368 100644
--- a/itjs.php
+++ b/itjs.php
@@ -71,7 +71,7 @@ else if (!it::match('\.html$', $file))
if (it::is_live() && !$_REQUEST['retry'])
{
- $keeptime = $_REQUEST['s'] || $_REQUEST['c'] ? 86400*30 : 900; # long expire if checksum present
+ $keeptime = 0 && $_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");
}