Don’t cache AJAX requests.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 31 Aug 2013 22:01:13 +0000 (00:01 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 31 Aug 2013 22:01:13 +0000 (00:01 +0200)
src/main/resources/static/javascript/sone.js

index accfabc..598c408 100644 (file)
@@ -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);