From 360a2a64db388f251a72b737abf337b4bf3ea4af Mon Sep 17 00:00:00 2001 From: Rouslan Placella Date: Wed, 19 Dec 2012 13:09:57 +0000 Subject: [PATCH] Disable jQuery's nocache feature when fetching js scripts --- js/ajax.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/js/ajax.js b/js/ajax.js index ba0cb090ae..0ac45f9bdb 100644 --- a/js/ajax.js +++ b/js/ajax.js @@ -359,8 +359,13 @@ var AJAX = { } // Download the composite js file, if necessary if (needRequest) { - $.getScript("js/get_scripts.js.php?" + request.join("&"), function () { - self.done(); + $.ajax({ + url: "js/get_scripts.js.php?" + request.join("&"), + cache: true, + success: function () { + self.done(); + }, + dataType: "script" }); } else { self.done();