Updated Branches: refs/heads/master c66ac4a80 -> 6ee2e7204
Setting Cache to false on ajax calls that are polled often for IE10 fixes Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/6ee2e720 Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/6ee2e720 Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/6ee2e720 Branch: refs/heads/master Commit: 6ee2e7204ee9625ec6ce299db7a0ac2a388d59a0 Parents: 6059288 Author: suelockwood <[email protected]> Authored: Thu Nov 7 09:54:05 2013 -0500 Committer: suelockwood <[email protected]> Committed: Thu Nov 7 09:54:36 2013 -0500 ---------------------------------------------------------------------- src/fauxton/app/addons/activetasks/resources.js | 5 +++++ src/fauxton/app/addons/auth/resources.js | 1 + src/fauxton/app/modules/fauxton/components.js | 8 ++++++-- 3 files changed, 12 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb/blob/6ee2e720/src/fauxton/app/addons/activetasks/resources.js ---------------------------------------------------------------------- diff --git a/src/fauxton/app/addons/activetasks/resources.js b/src/fauxton/app/addons/activetasks/resources.js index 5646eec..4625871 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; http://git-wip-us.apache.org/repos/asf/couchdb/blob/6ee2e720/src/fauxton/app/addons/auth/resources.js ---------------------------------------------------------------------- diff --git a/src/fauxton/app/addons/auth/resources.js b/src/fauxton/app/addons/auth/resources.js index dd900c5..b1d40cc 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", http://git-wip-us.apache.org/repos/asf/couchdb/blob/6ee2e720/src/fauxton/app/modules/fauxton/components.js ---------------------------------------------------------------------- diff --git a/src/fauxton/app/modules/fauxton/components.js b/src/fauxton/app/modules/fauxton/components.js index c79439e..be1bf72 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) {
