From 826835e518666d3fd7d09f4e944c98ee3650d369 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Fri, 22 Apr 2022 12:07:53 +0530 Subject: [PATCH] No need to rewrite to index.html --- src/platform/web/sw.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/platform/web/sw.js b/src/platform/web/sw.js index aaf56c4b..91ae85c5 100644 --- a/src/platform/web/sw.js +++ b/src/platform/web/sw.js @@ -124,11 +124,6 @@ async function handleRequest(request) { } async function handleConfigRequest(request) { - const url = new URL(request.url); - // rewrite / to /index.html so it hits the cache - if (url.origin === baseURL.origin && url.pathname === baseURL.pathname) { - request = new Request(new URL("index.html", baseURL.href)); - } let response = await readCache(request); if (response) { fetchAndUpdateConfig(request);