diff options
author | Christian Schneider | 2012-05-23 14:07:12 +0000 |
---|---|---|
committer | Christian Schneider | 2012-05-23 14:07:12 +0000 |
commit | 96fc37a9417759262c2b39fc49c2684b3f34f544 (patch) | |
tree | 6f83ab82e2e5f575e03ca74c12c64658c1923bec /itjs.php | |
parent | 74c2caee39c8bb467e93ad77229382e3480fa067 (diff) | |
download | itools-96fc37a9417759262c2b39fc49c2684b3f34f544.tar.gz itools-96fc37a9417759262c2b39fc49c2684b3f34f544.tar.bz2 itools-96fc37a9417759262c2b39fc49c2684b3f34f544.zip |
Fix itjs boot script fallback to not always include retry=1 and at the same time make retry=1 less cacheable to increase chance of successful recovery
Diffstat (limited to 'itjs.php')
-rw-r--r-- | itjs.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -69,9 +69,9 @@ else if (!it::match('\.html$', $file)) @header("Etag: $checksum"); -if ($checksum != $_SERVER['HTTP_IF_NONE_MATCH']) +if ($checksum != $_SERVER['HTTP_IF_NONE_MATCH'] || $_REQUEST['retry']) { - if (!preg_match('/Opera/', $_SERVER['HTTP_USER_AGENT']) && it::is_live()) + if (!preg_match('/Opera/', $_SERVER['HTTP_USER_AGENT']) && it::is_live() && !$_REQUEST['retry']) header("Cache-Control: max-age=900"); $data = itjs::strip($data); |