From c758455a0fabcf4cb07974d1bd27cb801e8e4a33 Mon Sep 17 00:00:00 2001 From: kunpw <68560175+kunpw@users.noreply.github.com> Date: Wed, 25 Nov 2020 18:33:08 +0800 Subject: [PATCH] Bypass cache when the tab reloads New setting won't take effect if the browser is using a cached version of the response headers --- background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/background.js b/background.js index e9b5cd1..e88ef86 100644 --- a/background.js +++ b/background.js @@ -60,7 +60,7 @@ browser.pageAction.onClicked.addListener(function(tab) { let to_store = {} to_store[host] = !whitelist_js browser.storage.local.set(to_store).then( function() { - browser.tabs.reload() + browser.tabs.reload({bypassCache: true}) }) }) })