I am trying to build a PWA with CRA and ran into some issues. However, even though I have registered the user (
serviceWorker.register() in index.js) and can store the files in cache storage and run it offline, I still cannot pass the audit and I get (I've built my web app already, so it's running in production mode):
start_urldoes not respond with a 200 when offline Unable to fetch start URL via service worker.
2.Current page does not respond with a 200 when offline
3.Does not register a service worker that controls page and
Which in my opinion is caused by wrong
I have a
index.html in public folder and
index.js inside the src folder (inside public). and I get
manifest.json in the build folder after I build the app.
I've tried changing the
"/" and some other options, but it did not change anything, still the same error.
Error in this line in
manifest.json are not precached. This is weird, because from my understanding it should be precached automiatically. What is the solution here ?