From d2e405aebd1b7e6bbdb4b533e471daf3f6df34d5 Mon Sep 17 00:00:00 2001 From: FormularSumo Date: Sat, 7 Sep 2024 21:53:50 +0200 Subject: [PATCH] Test another method --- sw.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sw.js b/sw.js index 9849101..066fb95 100644 --- a/sw.js +++ b/sw.js @@ -1,4 +1,4 @@ -const CACHE_NAME = `0.12.0.15`; // stable.pre-release.minor.web +const CACHE_NAME = `0.12.0.16`; // stable.pre-release.minor.web // Use the install event to pre-cache all initial resources. self.addEventListener('install', event => { @@ -31,8 +31,12 @@ self.addEventListener("activate", (e) => { //Delete old caches ); }), ); + for (const client of clients.matchAll()) { + // Reload the page + client.navigate(client.url); + } // window.location.reload(); - client.navigate(client.url); + // client.navigate(client.url); }); self.addEventListener('fetch', event => {