diff --git a/src/sw.ts b/src/sw.ts index 11f7f8b25..2179dfcb8 100644 --- a/src/sw.ts +++ b/src/sw.ts @@ -23,9 +23,14 @@ function fetchConfig(token?: string): RequestInit | undefined { headers: { Authorization: `Bearer ${token}`, }, + cache: 'default', }; } +self.addEventListener('activate', (event: ExtendableEvent) => { + event.waitUntil(clients.claim()); +}); + self.addEventListener('fetch', (event: FetchEvent) => { const { url, method } = event.request; if (method !== 'GET') return;