Skip to content

Commit 574e27c

Browse files
committed
made changes
1 parent 4fe19fc commit 574e27c

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

src/components/Site/Site.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,6 @@ function Site(props) {
262262
/>
263263
<meta name="mobile-web-app-capable" content="yes" />
264264
<link rel="icon" sizes="192x192" href="/icon_192x192.png" />
265-
<link rel="icon" sizes="512x512" href="/icon_512x512.png" />
266265
<meta name="apple-mobile-web-app-capable" content="yes" />
267266
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
268267
<meta name="apple-mobile-web-app-title" content="webpack" />

src/sw.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,7 @@ setDefaultHandler(new NetworkOnly());
8888

8989
// fallback to app-shell for document request
9090
setCatchHandler(({ event }) => {
91-
switch (event.request.destination) {
92-
case "document":
93-
return caches.match("/app-shell/index.html");
94-
default:
95-
return fetch(event.request);
91+
if (event.request.destination === "document") {
92+
return caches.match("/app-shell/index.html");
9693
}
9794
});

0 commit comments

Comments
 (0)