Bug 907350 - Set cache-control: no-store to avoid browser_thumbnails_background orange. r=adw, a=test-only
authorMark Hammond <mhammond@skippinet.com.au>
Thu, 22 Aug 2013 12:11:45 +1000
changeset 148419 3f1e67b70d5ffe6cf32119e37e5cc5656ee653d1
parent 148418 7f23a0018f11b85b3e90eb711bdc5f043965a365
child 148422 1c39ca9daa6c1fe0b6fb819772a5258a8aa4b4aa
push id2794
push userryanvm@gmail.com
push dateThu, 22 Aug 2013 20:35:27 +0000
treeherdermozilla-beta@3f1e67b70d5f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersadw, test-only
bugs907350
milestone24.0
Bug 907350 - Set cache-control: no-store to avoid browser_thumbnails_background orange. r=adw, a=test-only
toolkit/components/thumbnails/test/thumbnails_background.sjs
--- a/toolkit/components/thumbnails/test/thumbnails_background.sjs
+++ b/toolkit/components/thumbnails/test/thumbnails_background.sjs
@@ -3,17 +3,17 @@
 
 // The timer never fires if it's not declared and set to this variable outside
 // handleRequest, as if it's getting GC'ed when handleRequest's scope goes away.
 // Shouldn't the timer thread hold a strong reference to it?
 var timer;
 
 function handleRequest(req, resp) {
   resp.processAsync();
-  resp.setHeader("Cache-Control", "no-cache", false);
+  resp.setHeader("Cache-Control", "no-cache, no-store", false);
   resp.setHeader("Content-Type", "text/html;charset=utf-8", false);
 
   let opts = {};
   try {
     opts = JSON.parse(decodeURIComponent(req.queryString));
   }
   catch (err) {}