From b069514818547029f673f5196ae2c1cb2e4fd9c5 Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Tue, 28 Aug 2018 03:06:25 +0300 Subject: [PATCH] fix(docs-infra): temporary SW fix (for online mode) (#25692) Due to unknown reasons, Firebase seems to return a 301 response for `/index.html`, but without a `Location` header. According to the spec, the browser will not follow the redirect, considering the response as failed, instead. This commit temporarily removes `index.html` from hashed resources and changes `index` to `/` in `ngsw-config.json`, until we figure out an appropriate long-term solution. PR Close #25692 --- aio/ngsw-config.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aio/ngsw-config.json b/aio/ngsw-config.json index f005b6b4b9..fdf91a3439 100644 --- a/aio/ngsw-config.json +++ b/aio/ngsw-config.json @@ -1,5 +1,5 @@ { - "index": "/index.html", + "index": "/", "assetGroups": [ { "name": "app-shell", @@ -7,7 +7,6 @@ "updateMode": "prefetch", "resources": { "files": [ - "/index.html", "/pwa-manifest.json", "/app/search/search-worker.js", "/assets/images/favicons/favicon.ico",