Skip to content

Commit a67a287

Browse files
committed
Update service-worker.published.js
1 parent ace9266 commit a67a287

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

TiredDoctorManhattan.Wasm/wwwroot/service-worker.published.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ const offlineAssetsExclude = [/^service-worker\.js$/];
2323
// Replace with your base path if you are hosting on a subfolder. Ensure there is a trailing '/'.
2424
const base = "/";
2525
const baseUrl = new URL(base, self.origin);
26-
const manifestUrlList = self.assetsManifest.assets.map(asset => new URL(asset.url, baseUrl).href);
2726

2827
async function onInstall(event) {
2928
console.info('Service worker: Install');
@@ -52,7 +51,6 @@ async function onFetch(event) {
5251
// For all navigation requests, try to serve index.html from cache
5352
// If you need some URLs to be server-rendered, edit the following check to exclude those URLs
5453
const shouldServeIndexHtml = event.request.mode === 'navigate'
55-
&& !manifestUrlList.some(url => url === event.request.url);
5654

5755
const request = shouldServeIndexHtml ? 'index.html' : event.request;
5856
const cache = await caches.open(cacheName);

0 commit comments

Comments
 (0)