I you go to the app https://quotesaboutjesus.netlify.com/quotes and look at Application tab in Chrome Dev tool, you'll see after few seconds the service worker runing well... and the app work well in online mode.
But Lighthouse audit result always says me :
- Current page does not respond with a 200 when offline.
- start_url does not respond with a 200 when offlineThe start_url did respond, but not via a service worker.
- Does not register a service worker that controls page and start_url
But as you'll see in my code here or directly in my manifest.webmanifest here, i did (i think ?: because Lighthouse says me i didn't) :
- add a web app manifest.
- Check that the start_url in your manifest is correct.
- Add a service worker to your app.
- Use the service worker to cache files locally.
- When offline, use the service worker as a network proxy to return the locally cached version of the file.
So i don't understand why i fails the audit test (you can easily reproduce it yourself online).
i imagined that it can be cause by the fact that my SW register a little late, so i try to optimise the performance of the app, but even now it has better performances score (90 at least during audit test), it's didn't pass this test.
Can someone help me ?
Image showing the Lighthouse error messages