diff options
author | Urban Müller | 2014-08-26 19:16:36 +0200 |
---|---|---|
committer | Urban Müller | 2014-08-26 19:16:36 +0200 |
commit | ac5ba76a64857445fcf816943d6756962edb0d65 (patch) | |
tree | ce62c9ba2ab52bc8163e0f241e4ffba80991eec7 /itjs.php | |
parent | d4aeaef63c366dc1d5e147d777f1c04d8d5aae57 (diff) | |
download | itools-ac5ba76a64857445fcf816943d6756962edb0d65.tar.gz itools-ac5ba76a64857445fcf816943d6756962edb0d65.tar.bz2 itools-ac5ba76a64857445fcf816943d6756962edb0d65.zip |
Opera should be fixed by now...
Diffstat (limited to 'itjs.php')
-rw-r--r-- | itjs.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -67,7 +67,7 @@ else if (!it::match('\.html$', $file)) @header("Etag: alwaysvalid"); # we have checksums in the url. client should always keep the version he downloaded along with the html -if (!preg_match('/Opera/', $_SERVER['HTTP_USER_AGENT']) && it::is_live() && !$_REQUEST['retry']) +if (it::is_live() && !$_REQUEST['retry']) { $keeptime = $_REQUEST['s'] || $_REQUEST['c'] ? 86400*30 : 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 |