fix(pwa): skip range requests in service worker (#1672)
This commit is contained in:
parent
b77767f76e
commit
76d58fe0ff
1 changed files with 4 additions and 0 deletions
|
@ -75,6 +75,10 @@ self.addEventListener('message', (event) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
self.addEventListener('fetch', (event) => {
|
self.addEventListener('fetch', (event) => {
|
||||||
|
if (event.request.headers.has('range')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
event.respondWith(
|
event.respondWith(
|
||||||
caches.match(event.request).then((response) => {
|
caches.match(event.request).then((response) => {
|
||||||
if (response) {
|
if (response) {
|
||||||
|
|
Loading…
Reference in a new issue