Skip to content

Commit

Permalink
fix(pwa): skip range requests in service worker (#1672)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMurdock11 committed Apr 29, 2024
1 parent b77767f commit 76d58fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assets/js/pwa/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ self.addEventListener('message', (event) => {
});

self.addEventListener('fetch', (event) => {
if (event.request.headers.has('range')) {
return;
}

event.respondWith(
caches.match(event.request).then((response) => {
if (response) {
Expand Down

0 comments on commit 76d58fe

Please sign in to comment.