D
D
Dmitry2022-02-10 12:57:32
React
Dmitry, 2022-02-10 12:57:32

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
6204e08478bd9418790133.png
. But I still need offline mode, so I try to disconnect the Internet and reload the page, but I get the following.
6204e0f712d9a410965742.png
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 question

Ask a Question

731 491 924 answers to any question