diff --git a/app/static/app/js/serviceworker.js b/app/static/app/js/serviceworker.js index 64dc129..59f8a35 100644 --- a/app/static/app/js/serviceworker.js +++ b/app/static/app/js/serviceworker.js @@ -2,16 +2,16 @@ var staticCacheName = "django-pwa-v" + new Date().getTime(); var filesToCache = [ '/app/home', ]; -self.addEventListener("install", event => { - this.skipWaiting(); - event.waitUntil( - caches.open(staticCacheName) - .then(cache => { - return fetch('/app/home') - .then(response => cache.put('/app/home', new Response(response.body))); - }) - ) -}); +// self.addEventListener("install", event => { +// this.skipWaiting(); +// event.waitUntil( +// caches.open(staticCacheName) +// .then(cache => { +// return fetch('/app/home') +// .then(response => cache.put('/app/home', new Response(response.body))); +// }) +// ) +// }); // Clear cache on activate self.addEventListener('activate', event => {