Skip to content

Commit

Permalink
Fix: exclude signin/signup process from service worker caching
Browse files Browse the repository at this point in the history
  • Loading branch information
hookor authored and cuconveniencestore committed Jun 4, 2024
1 parent 9157c13 commit 548ee38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/pwabuilder-sw.js
Original file line number Diff line number Diff line change
@@ -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 = [
Expand Down Expand Up @@ -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));
});

0 comments on commit 548ee38

Please sign in to comment.