Fixed a problem that caused tabs to reload pages
This commit is contained in:
@ -113,8 +113,6 @@ class MyServiceWorker {
|
||||
return evt.respondWith(this.fromNetwork(request))
|
||||
}
|
||||
|
||||
console.log("Fetch:", request.url)
|
||||
|
||||
// Clear cache on authentication and fetch it normally
|
||||
if(request.url.includes("/auth/") || request.url.includes("/logout")) {
|
||||
return evt.respondWith(caches.delete(this.cache.version).then(() => fetch(request)))
|
||||
|
Reference in New Issue
Block a user