Skip to content

Commit

Permalink
exclude tracking urls from / cacheing woops
Browse files Browse the repository at this point in the history
  • Loading branch information
Robonau committed Dec 10, 2023
1 parent c0ed758 commit a2293f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/service-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ self.addEventListener('fetch', (event) => {
!url.pathname.includes('svelte') &&
!url.pathname.includes('/src/') &&
!url.pathname.includes('.json') &&
!url.pathname.endsWith('.png')
!url.pathname.endsWith('.png') &&
!url.pathname.includes('/v1/')
) {
const cache = await openCache;
const cachedResponce = await cache.match('/');
Expand Down

0 comments on commit a2293f7

Please sign in to comment.