From 548ee381cb37e865e3306e80b945a97da552209d Mon Sep 17 00:00:00 2001 From: hookor Date: Wed, 5 Jun 2024 02:03:11 +0900 Subject: [PATCH] Fix: exclude signin/signup process from service worker caching --- public/pwabuilder-sw.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/pwabuilder-sw.js b/public/pwabuilder-sw.js index 4ae8373..0cb6f30 100644 --- a/public/pwabuilder-sw.js +++ b/public/pwabuilder-sw.js @@ -1,4 +1,4 @@ -const STATIC_CACHE_NAME = 'ddocker-static-v7'; +const STATIC_CACHE_NAME = 'ddocker-static-v8'; const DYNAMIC_CACHE_NAME = 'ddocker-dynamic-v1'; const ASSETS = [ @@ -180,5 +180,6 @@ const handleError = error => { self.addEventListener('fetch', event => { if (event.request.headers.get('Accept') === 'text/event-stream') return; + if (event.request.url.includes('start')) return; event.respondWith(cacheOrFetch(event.request).catch(handleError)); });