From: David ‘Bombe’ Roden Date: Sat, 31 Aug 2013 22:01:13 +0000 (+0200) Subject: Don’t cache AJAX requests. X-Git-Tag: 0.8.7^2~27 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=ce12c2862137e25f072bfc42049a3361cece3525;p=Sone.git Don’t cache AJAX requests. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index accfabc..598c408 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -2,7 +2,7 @@ function ajaxGet(url, data, successCallback, errorCallback) { (function(url, data, successCallback, errorCallback) { - $.ajax({"type": "GET", "url": url, "data": data, "dataType": "json", "success": function(data, textStatus, xmlHttpRequest) { + $.ajax({"cache": false, "type": "GET", "url": url, "data": data, "dataType": "json", "success": function(data, textStatus, xmlHttpRequest) { ajaxSuccess(); if (typeof successCallback != "undefined") { successCallback(data, textStatus);