Skip to content

Commit

Permalink
chore: add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
SegaraRai committed Dec 23, 2023
1 parent bf01fd3 commit 2eb635e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion swEntry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ async function handleEvent(url: URL, event: FetchEvent): Promise<Response> {
: 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);
}

Expand All @@ -243,7 +244,7 @@ async function handleEvent(url: URL, event: FetchEvent): Promise<Response> {
}

// start
async function start() {
async function start(): Promise<void> {
// workbox
const precacheController = new PrecacheController();
tweakPrecacheStrategyToUseAssetArchive(
Expand Down

0 comments on commit 2eb635e

Please sign in to comment.