Avoid caching the result of ajax calls. IE like to cache them a lot. fix #131

This commit is contained in:
Sébastien Lucas 2014-01-06 21:39:57 +01:00
parent f651184928
commit a78863e8a0

View file

@ -11,6 +11,10 @@ if (typeof LRUCache != 'undefined') {
var cache = new LRUCache(30); var cache = new LRUCache(30);
} }
$.ajaxSetup({
cache: false
});
var DEBUG = false; var DEBUG = false;
var isPushStateEnabled = window.history && window.history.pushState && window.history.replaceState && var isPushStateEnabled = window.history && window.history.pushState && window.history.replaceState &&
// pushState isn't reliable on iOS until 5. // pushState isn't reliable on iOS until 5.