fix: service worker redirect not set to follow
This commit is contained in:
parent
1b7b50ea96
commit
3640b547ee
@ -1,3 +1,3 @@
|
||||
<?php
|
||||
$version = "v1.8.1";
|
||||
$version = "v1.8.2";
|
||||
?>
|
||||
@ -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);
|
||||
})
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user