From 96fc37a9417759262c2b39fc49c2684b3f34f544 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Wed, 23 May 2012 14:07:12 +0000 Subject: 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 --- itjs.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'itjs.php') diff --git a/itjs.php b/itjs.php index f819cab..7b42b20 100644 --- a/itjs.php +++ b/itjs.php @@ -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); -- cgit v1.2.3