fix(pwa): skip range requests in service worker (#1672)

This commit is contained in:
Azamat Mambetov 2024-04-29 19:27:41 +04:00 committed by GitHub
parent b77767f76e
commit 76d58fe0ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {