Search code examples
reactjscreate-react-appprogressive-web-apps

Making Data available offline in Progressive Web App


I made a progressive web app with Create React App.

The user shall be able to make data available offline by clicking i.e. a button. Is there a convention or best practise to do that?


Solution

  • Have a look at workbox. It's used in Create React App as well as Next.js.

    The actual answer to the question can be found in section Access Caches from Your Web App's Code.