From be43bf3f23fee1637045e3cacdd9ee0dda106c1a Mon Sep 17 00:00:00 2001 From: tophf Date: Wed, 19 Jan 2022 14:40:34 +0300 Subject: [PATCH] force no-cache in update checker --- background/update-manager.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/background/update-manager.js b/background/update-manager.js index 0c84cef8..6fa28c1d 100644 --- a/background/update-manager.js +++ b/background/update-manager.js @@ -1,5 +1,5 @@ /* global API */// msg.js -/* global RX_META URLS debounce download ignoreChromeError */// toolbox.js +/* global RX_META URLS debounce deepMerge download ignoreChromeError */// toolbox.js /* global calcStyleDigest styleJSONseemsValid styleSectionsEqual */ // sections-util.js /* global chromeLocal */// storage-util.js /* global compareVersion */// cmpver.js @@ -264,6 +264,7 @@ const updateMan = (() => { let {retryDelay = 1000} = opts; while (true) { try { + params = deepMerge(params || {}, {headers: {'Cache-Control': 'no-cache'}}); return await download(url, params); } catch (code) { if (!RETRY_ERRORS.includes(code) ||