From 7ce0e9ee23c68afe0d7d3ec5cab1a77b5428f06e Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 7 Jul 2010 18:28:25 +0000 Subject: [PATCH] Don't cache HTTP GET requests in Zotero.Utilities.HTTP.doGet() --- chrome/content/zotero/xpcom/utilities.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js index 7bf27e9c4..0b3d01c8d 100644 --- a/chrome/content/zotero/xpcom/utilities.js +++ b/chrome/content/zotero/xpcom/utilities.js @@ -1087,6 +1087,9 @@ Zotero.Utilities.HTTP = new function() { } } + // Don't cache GET requests + xmlhttp.channel.loadFlags |= Components.interfaces.nsIRequest.LOAD_BYPASS_CACHE; + /** @ignore */ xmlhttp.onreadystatechange = function() { _stateChange(xmlhttp, onDone, responseCharset);