From c7a262db9dda34db6b1f0e9dc730e6c3e83ef50e Mon Sep 17 00:00:00 2001 From: "Vyacheslav.Sviridov" Date: Sun, 18 Apr 2021 21:05:11 +0600 Subject: [PATCH] sw tuning --- assets/serviceworker.js | 1 + manifest.json | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/assets/serviceworker.js b/assets/serviceworker.js index 26f07de..b2e4649 100644 --- a/assets/serviceworker.js +++ b/assets/serviceworker.js @@ -26,6 +26,7 @@ self.addEventListener('activate', async event => { self.addEventListener('fetch', event => { const {request} = event + console.log(request.url) event.respondWith(cacheFirst(request)) }) diff --git a/manifest.json b/manifest.json index 6908aab..846cbcb 100644 --- a/manifest.json +++ b/manifest.json @@ -5,8 +5,8 @@ "background_color": "rgba(0,0,0,0.1)", "display": "standalone", "orientation": "portrait", - "scope": "/assets/", - "start_url": "/assets/", + "scope": "/", + "start_url": "/", "icons": [ { "src": "/assets/icon-192x192.png",