Skip to content

Commit

Permalink
Test another method
Browse files Browse the repository at this point in the history
  • Loading branch information
FormularSumo committed Sep 7, 2024
1 parent 2f8901c commit d2e405a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions sw.js
Original file line number Diff line number Diff line change
@@ -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 => {
Expand Down Expand Up @@ -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 => {
Expand Down

0 comments on commit d2e405a

Please sign in to comment.