From a18e3ba37dc268fd98da38261cabeb1931415d27 Mon Sep 17 00:00:00 2001 From: kkapsner Date: Thu, 28 Mar 2024 14:26:20 +0100 Subject: [PATCH] Disable cache when reloading in the browser action --- browserAction/browserAction.js | 2 +- releaseNotes.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/browserAction/browserAction.js b/browserAction/browserAction.js index e1211e0..901571b 100644 --- a/browserAction/browserAction.js +++ b/browserAction/browserAction.js @@ -25,7 +25,7 @@ const currentURL = new URL(currentTab.url); const reloadButton = document.getElementById("reload"); reloadButton.addEventListener("click", async function(){ - await browser.tabs.reload(currentTab.id); + await browser.tabs.reload(currentTab.id, {bypassCache: true}); window.close(); }); const addonStatus = document.getElementById("addonStatus"); diff --git a/releaseNotes.txt b/releaseNotes.txt index b61008f..ef7c413 100644 --- a/releaseNotes.txt +++ b/releaseNotes.txt @@ -12,6 +12,7 @@ Version 1.10: - settings export page did not show whole content in Firefox for Android - new tabs opened from within the extension did not open properly in Firefox for Android - settings reset confirmation dialog was not properly visible in Firefox for Android + - reload after changing the whitelist state in the browser action has to be done without cache known issues: - if a data URL is blocked the page action button does not appear