You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I've been trying to get a working NextJS PWA. Everything is working fine at random. Everything except the 'start_url does not respond with a 200 when offline.' works every time. However, at times and when clearing cache it works and results in a full Lighthouse score, but most often not. The applications works perfect offline when reloading and force reloading.
GUESS: IndexedDb/workbox-expiration causes the browser to cache the website, making Lighthouse think that the SW is not working.
Reproduce
Run Lighthouse with PWA option selected
Everything will either work, or the 'start_url does not respond with 200 when offline' will be marked in red.
Close lighthouse, go into the 'Applications' tab and delete the IndexedDb/workbox-expiration entry and then 'Clear Storage'
Rerun test, and you might get full score.
My manifest.json
..."start_url": "/",
"scope": "/"...
Expected
To receive a full Lighthouse score every time.
Actual
Occationally receiving a full Lighthouse score, but more often getting a 'start_url does not respond with a 200 when offlineThe start_url did respond, but not via a service worker.' error in the PWA LH test.
Epilogue
I really love this project, it's super simple to use with NextJS. Thank you for creating it!
This might not even be a problem. But I guess Lighthouse should not throw errors when the service worker actually works.
The text was updated successfully, but these errors were encountered:
Hi, I've been trying to get a working NextJS PWA. Everything is working fine at random. Everything except the 'start_url does not respond with a 200 when offline.' works every time. However, at times and when clearing cache it works and results in a full Lighthouse score, but most often not. The applications works perfect offline when reloading and force reloading.
Tested sites
I got the same error on both sites.
Versions and Tested Browsers
MacOS: 10.15.7
Chrome: 87.0.4280.88 (Incognito & Normal)
Brave: 1.18.75 (Incognito & Normal)
NextJS: 10.0.4
Next-offline: 5.0.3
React: 17.0.1
Node: 15.0.1
Issue
GUESS: IndexedDb/workbox-expiration causes the browser to cache the website, making Lighthouse think that the SW is not working.
Reproduce
My manifest.json
Expected
To receive a full Lighthouse score every time.
Actual
Occationally receiving a full Lighthouse score, but more often getting a 'start_url does not respond with a 200 when offlineThe start_url did respond, but not via a service worker.' error in the PWA LH test.
Epilogue
I really love this project, it's super simple to use with NextJS. Thank you for creating it!
This might not even be a problem. But I guess Lighthouse should not throw errors when the service worker actually works.
The text was updated successfully, but these errors were encountered: