1

I have a website that includes a manifest.json in the root of the domain.

/manifest.json (for content see below)

Scenarios

  • When I check the google lighthouse audit it works on the homepage.

  • When I check it on a suburl (like /test/) the message from lighthouse (under PWA) is: Timed out waiting for fetched start_url. I don't change the start_url for each subpage because I want that the start_url is always the homepage.

Does anybody knows why lighthouse is complaining and how I can fix it?

Content of manifest.json

{
  "name": "My website",
  "short_name": "My website",
  "start_url": "/",
  "icons": [
    {
      "src": "/assets/favicons/android-chrome-192x192-0eb7305556625ca6988c1f745f8de22ce1de04bdee9c129f8a04bf727dd4e23c.png",
      "sizes": "192x192",
      "type": "image/png"
    },
    {
      "src": "/assets/favicons/android-chrome-512x512-b5a1336abb27251a9b2baefc0a2789cd1fd8d644c9d8e006744f02daa323ab68.png",
      "sizes": "512x512",
      "type": "image/png"
    }
  ],
  "theme_color": "#ffffff",
  "background_color": "#ffffff",
  "display": "standalone"
}

response headers of manifest.json

alt-svc: clear
cache-control: private, max-age=0, no-cache
content-encoding: gzip
content-type: application/json
date: Mon, 18 Mar 2019 15:36:50 GMT
last-modified: Thu, 14 Mar 2019 12:54:03 GMT
server: nginx
status: 200
status: 200 OK
vary: Accept-Encoding
via: 1.1 google
x-request-id: 9eeb9731-9db0-43c8-bc98-9fed8a76fda2
x-runtime: 0.003905
Extranion
  • 588
  • 8
  • 25
  • Why are you testing from a subfolder? I have never seen people do that before. Perhaps they are. Usually (I THINK), everyone just tests from the home page. – Mathias Mar 18 '19 at 15:58
  • 4
    That should not matter right? We want to have a 100% score on each page. Not only on the homepage. – Extranion Mar 18 '19 at 16:01
  • Ok. I just may be doing mine the lazy way. – Mathias Mar 18 '19 at 16:02
  • 1
    I do a test on https://latest.snapshot.deity.io/men.html and can not find a similar issue, so it is something with your setup. @Mathias I am also surprised by testing subfolder, but actually, it makes sense to do it! – Marcin Apr 03 '19 at 09:28

2 Answers2

2

I ran into this same anomaly last week and it turned out I just needed to uncheck the 'Clear storage' checkbox in Chrome Lightbox.

Here's where to click to reveal that checkbox:

enter image description here

VikR
  • 4,818
  • 8
  • 51
  • 96
  • not working for me :( chrome 86.0.4240.75 it only works on the homepage. ---> "Timed out waiting for start_url (https://www.domain.nl/) to respond." – Extranion Oct 07 '20 at 16:47
1

Just remove this checkbox in more new Chrome: enter image description here

Dima Dorogonov
  • 2,297
  • 1
  • 20
  • 23
  • but does this really test the real thing? its also not working for me. It only works on the homepage.. --> "Timed out waiting for start_url (https://www.domain.nl/) to respond." – Extranion Oct 07 '20 at 16:46