diff --git a/pwa/templates/serviceworker.js b/pwa/templates/serviceworker.js index 7f31ad8..1893262 100644 --- a/pwa/templates/serviceworker.js +++ b/pwa/templates/serviceworker.js @@ -2,7 +2,7 @@ var staticCacheName = "django-pwa-v" + new Date().getTime(); var filesToCache = [ - '/offline', + '/offline/', '/static/css/django-pwa-app.css', '/static/images/icons/icon-72x72.png', '/static/images/icons/icon-96x96.png', @@ -57,7 +57,7 @@ self.addEventListener("fetch", event => { return response || fetch(event.request); }) .catch(() => { - return caches.match('offline'); + return caches.match('/offline/'); }) ) -}); \ No newline at end of file +});