diff --git a/swEntry.ts b/swEntry.ts index 6a0d5c2..a062a6e 100644 --- a/swEntry.ts +++ b/swEntry.ts @@ -233,6 +233,7 @@ async function handleEvent(url: URL, event: FetchEvent): Promise { : undefined; if (fixedLocationHeader) { if (resFixed.status >= 300 && resFixed.status < 400) { + // iOS seems to not be able to handle manually created redirect responses returned from the Service Worker return Response.redirect(fixedLocationHeader, resFixed.status); } @@ -243,7 +244,7 @@ async function handleEvent(url: URL, event: FetchEvent): Promise { } // start -async function start() { +async function start(): Promise { // workbox const precacheController = new PrecacheController(); tweakPrecacheStrategyToUseAssetArchive(