From dbf5fdd45b2f81afee895fe047153fc43640850c Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Sun, 2 Nov 2014 21:51:18 +0100 Subject: reenable long max-age now that errors are down --- itjs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'itjs.php') diff --git a/itjs.php b/itjs.php index 86cca64..37028a5 100644 --- a/itjs.php +++ b/itjs.php @@ -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"); } -- cgit v1.2.3