From 5d040ae8a0da5aeba5d1bc39142739b567387176 Mon Sep 17 00:00:00 2001 From: Miodec Date: Thu, 1 Dec 2022 20:19:03 +0100 Subject: [PATCH] also clearing cache after uninstalling the service worker --- frontend/static/html/warnings.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/static/html/warnings.html b/frontend/static/html/warnings.html index 21abe9467..e02358c62 100644 --- a/frontend/static/html/warnings.html +++ b/frontend/static/html/warnings.html @@ -80,6 +80,11 @@ for (let registration of registrations) { registration.unregister(); } + caches.keys().then((cacheNames) => { + for (let cacheName of cacheNames) { + caches.delete(cacheName); + } + }); }); setTimeout(function () { window.location.reload();