Answer the question
In order to leave comments, you need to log in
Why is caching not working (create react app)?
Hello. I set up pwa for the site i.e. added manifest.json and allowed service-worker registration in index.js file
(serviceWorker.register();) and it all happens in create react app. The PWA works and I can add the application to the desktop, but there is a problem, caching works strangely.
When the page loads, I see that the cache store contains everything I need
. But I still need offline mode, so I try to disconnect the Internet and reload the page, but I get the following.
The cache is gone and I get an error, instead of a cached page.
In general, what could be the problem? Thank you.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question