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
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
<?php <?php
$version = "v1.8.1"; $version = "v1.8.2";
?> ?>
+1 -1
View File
@@ -31,7 +31,7 @@ self.addEventListener('install', function(event) {
self.addEventListener('fetch', function(event) { self.addEventListener('fetch', function(event) {
event.respondWith( event.respondWith(
caches.match(event.request).then(function(response) { caches.match(event.request, { redirect: 'follow' }).then(function(response) {
return response || fetch(event.request); return response || fetch(event.request);
}) })
); );