diff options
author | Christian Schneider | 2014-09-26 11:26:05 +0200 |
---|---|---|
committer | Christian Schneider | 2014-09-26 11:26:05 +0200 |
commit | edd327e75e93162124366d66e03fbbbf681ad7a7 (patch) | |
tree | e39ac4f95f18749300132f1e163cd8d0edee38ad | |
parent | 42de49cfb16df32142f312f3396d0a8737431901 (diff) | |
download | itools-edd327e75e93162124366d66e03fbbbf681ad7a7.tar.gz itools-edd327e75e93162124366d66e03fbbbf681ad7a7.tar.bz2 itools-edd327e75e93162124366d66e03fbbbf681ad7a7.zip |
Also disabled long max-age if there is a c= URL parameter
-rw-r--r-- | itjs.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); } |