Bug 553385: Bypass cache for update checks. r=robstrong
authorDave Townsend <dtownsend@oxymoronical.com>
Mon, 05 Apr 2010 10:19:52 -0700
changeset 41560 c597b774dc77d55fb5f15d8aff6c9dc3696717a6
parent 41559 a40697759e2d56f8e3f89c4cf061005285ad286c
child 41561 06bbf246305222fb18c0347edf57e1c6f98bd65f
push idunknown
push userunknown
push dateunknown
reviewersrobstrong
bugs553385
milestone1.9.3a5pre
Bug 553385: Bypass cache for update checks. r=robstrong
toolkit/mozapps/extensions/AddonUpdateChecker.jsm
--- a/toolkit/mozapps/extensions/AddonUpdateChecker.jsm
+++ b/toolkit/mozapps/extensions/AddonUpdateChecker.jsm
@@ -426,16 +426,17 @@ function UpdateParser(id, type, updateKe
                createInstance(Ci.nsITimer);
   this.timer.initWithCallback(this, TIMEOUT, Ci.nsITimer.TYPE_ONE_SHOT);
 
   LOG("Requesting " + url);
   this.request = Cc["@mozilla.org/xmlextras/xmlhttprequest;1"].
                  createInstance(Ci.nsIXMLHttpRequest);
   this.request.open("GET", url, true);
   this.request.channel.notificationCallbacks = new BadCertHandler();
+  this.request.channel.loadFlags |= Ci.nsIRequest.LOAD_BYPASS_CACHE;
   this.request.overrideMimeType("text/xml");
   var self = this;
   this.request.onload = function(event) { self.onLoad() };
   this.request.onerror = function(event) { self.onError() };
   this.request.send(null);
 }
 
 UpdateParser.prototype = {