From edd327e75e93162124366d66e03fbbbf681ad7a7 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Fri, 26 Sep 2014 11:26:05 +0200 Subject: Also disabled long max-age if there is a c= URL parameter --- itjs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'itjs.php') 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"); } -- cgit v1.2.3