Skip to content

Commit 4fe19fc

Browse files
committed
fixed comments
1 parent 9bfa412 commit 4fe19fc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/sw.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ self.addEventListener("install", (event) => {
4444
self.addEventListener("activate", (event) => {
4545
// - [x] clean up outdated runtime cache
4646
event.waitUntil(
47-
// clean up those who are not listed in manifestURLs
4847
caches.open(cacheName).then((cache) =>
4948
// clean up those who are not listed in manifestURLs
5049
cache
@@ -93,6 +92,6 @@ setCatchHandler(({ event }) => {
9392
case "document":
9493
return caches.match("/app-shell/index.html");
9594
default:
96-
return Response.error();
95+
return fetch(event.request);
9796
}
9897
});

0 commit comments

Comments
 (0)