From 2eb635e070f23f72bc87b9e8443ef31121121806 Mon Sep 17 00:00:00 2001 From: SegaraRai Date: Sun, 24 Dec 2023 01:27:36 +0900 Subject: [PATCH] chore: add comments --- swEntry.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(