Fixed a problem that caused tabs to reload pages

This commit is contained in:
2017-12-04 12:21:41 +01:00
parent 26ab168dd7
commit e8a8e5fb5a
3 changed files with 11 additions and 7 deletions

View File

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