Skip to content

Commit

Permalink
fix: service worker redirect not set to follow
Browse files Browse the repository at this point in the history
  • Loading branch information
ellite committed Feb 22, 2024
1 parent 1b7b50e commit 1dd9080
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ self.addEventListener('install', function(event) {

self.addEventListener('fetch', function(event) {
event.respondWith(
caches.match(event.request).then(function(response) {
caches.match(event.request, { redirect: 'follow' }).then(function(response) {
return response || fetch(event.request);
})
);
Expand Down

0 comments on commit 1dd9080

Please sign in to comment.