From 1892f7b5b0627a78ece72c157a5e447f2a20beea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Wed, 27 Apr 2016 15:27:09 +0100 Subject: [PATCH] Closes #951. Bypasses cache when retrieving feeds --- chrome/content/zotero/xpcom/feedReader.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/feedReader.js b/chrome/content/zotero/xpcom/feedReader.js index eb44bc03ef..7add8ac878 100644 --- a/chrome/content/zotero/xpcom/feedReader.js +++ b/chrome/content/zotero/xpcom/feedReader.js @@ -159,6 +159,7 @@ Zotero.FeedReader = function(url) { this._channel = Services.io.newChannelFromURI2(feedUrl, null, Services.scriptSecurityManager.getSystemPrincipal(), null, Ci.nsILoadInfo.SEC_NORMAL, Ci.nsIContentPolicy.TYPE_OTHER); + this._channel.loadFlags |= Components.interfaces.nsIRequest.LOAD_BYPASS_CACHE; this._channel.asyncOpen(feedProcessor, null); // Sends an HTTP request } @@ -189,7 +190,7 @@ Zotero.FeedReader.prototype.terminate = function(status) { } // Close feed connection - if (this._channel.isPending) { + if (this._channel.isPending()) { this._channel.cancel(Components.results.NS_BINDING_ABORTED); } };