fix: service worker redirect not set to follow

This commit is contained in:
Miguel Ribeiro 2024-02-26 23:50:22 +01:00 committed by GitHub
parent 1b7b50ea96
commit 3640b547ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -1,3 +1,3 @@
<?php
$version = "v1.8.1";
$version = "v1.8.2";
?>

View File

@ -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);
})
);