From 530241b03ebe431cd8a3d071f0a9ab8755ecdb4c Mon Sep 17 00:00:00 2001 From: Thomas BrĂ¼derli Date: Mon, 6 Aug 2007 07:54:11 +0000 Subject: Add timestamp on it_boot retry to prevent caching --- itjs/boot.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'itjs/boot.js') diff --git a/itjs/boot.js b/itjs/boot.js index 2c1943f..9dd6ed9 100644 --- a/itjs/boot.js +++ b/itjs/boot.js @@ -95,7 +95,7 @@ function it_boot(file, isretry) if (loader) { - loader.open("GET", it_boot_addparam(file, "boot=1" + (isretry ? "&retry=1" : ""))); + loader.open("GET", it_boot_addparam(file, "boot=1" + (isretry ? "&retry=1&t="+new Date().getTime() : ""))); loader.onreadystatechange = function() { var error = ""; @@ -118,8 +118,9 @@ function it_boot(file, isretry) else window.setTimeout(code, 0); // Standard compliant version } - else - error = "Length mismatch " + data.code.length + " != " + data.len; + else { + alert("Length mismatch " + data.code.length + " != " + data.len); + error = "Length mismatch " + data.code.length + " != " + data.len; } } catch (e) { -- cgit v1.2.3