diff options
author | suelockwood <deathbearbrown@gmail.com> | 2013-11-07 09:54:05 -0500 |
---|---|---|
committer | suelockwood <deathbearbrown@gmail.com> | 2013-11-07 09:54:36 -0500 |
commit | 6ee2e7204ee9625ec6ce299db7a0ac2a388d59a0 (patch) | |
tree | 59de960b017e7421ef14e6b08572686a1ed33add | |
parent | 605928838feb45174b0f8cb572efba456e2f079f (diff) | |
download | couchdb-6ee2e7204ee9625ec6ce299db7a0ac2a388d59a0.tar.gz |
Setting Cache to false on ajax calls that are polled often for IE10 fixes
-rw-r--r-- | src/fauxton/app/addons/activetasks/resources.js | 5 | ||||
-rw-r--r-- | src/fauxton/app/addons/auth/resources.js | 1 | ||||
-rw-r--r-- | src/fauxton/app/modules/fauxton/components.js | 8 |
3 files changed, 12 insertions, 2 deletions
diff --git a/src/fauxton/app/addons/activetasks/resources.js b/src/fauxton/app/addons/activetasks/resources.js index 5646eeccb..46258718c 100644 --- a/src/fauxton/app/addons/activetasks/resources.js +++ b/src/fauxton/app/addons/activetasks/resources.js @@ -41,6 +41,11 @@ function (app, backbone, Fauxton) { url: function () { return app.host + '/_active_tasks'; }, + fetch: function (options) { + var fetchoptions = options || {}; + fetchoptions.cache = false; + return Backbone.Model.prototype.fetch.call(this, fetchoptions); + }, parse: function(resp){ var types = this.getUniqueTypes(resp), that = this; diff --git a/src/fauxton/app/addons/auth/resources.js b/src/fauxton/app/addons/auth/resources.js index dd900c50a..b1d40ccd5 100644 --- a/src/fauxton/app/addons/auth/resources.js +++ b/src/fauxton/app/addons/auth/resources.js @@ -153,6 +153,7 @@ function (app, FauxtonAPI) { var that = this; return $.ajax({ + cache: false, type: "POST", url: "/_session", dataType: "json", diff --git a/src/fauxton/app/modules/fauxton/components.js b/src/fauxton/app/modules/fauxton/components.js index c79439ee5..be1bf72e1 100644 --- a/src/fauxton/app/modules/fauxton/components.js +++ b/src/fauxton/app/modules/fauxton/components.js @@ -126,13 +126,15 @@ function(app, FauxtonAPI, ace) { query, "%22&endkey=%22", query, - "\u9999%22&limit=", + "\u9999", + "%22&limit=", this.dbLimit ].join(''); if (this.ajaxReq) { this.ajaxReq.abort(); } this.ajaxReq = $.ajax({ + cache: false, url: url, dataType: 'json', success: function(data) { @@ -157,13 +159,15 @@ function(app, FauxtonAPI, ace) { query, "%22&endkey=%22", query, - "\u9999%22&limit=", + "\u9999", + "%22&limit=", this.docLimit ].join(''); if (this.ajaxReq) { this.ajaxReq.abort(); } this.ajaxReq = $.ajax({ + cache: false, url: url, dataType: 'json', success: function(data) { |