also clearing cache after uninstalling the service worker

This commit is contained in:
Miodec 2022-12-01 20:19:03 +01:00
parent 41e49d452c
commit 5d040ae8a0

View file

@ -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();