Creating an app shell and a default "No internet connection page" fallback #163
-
This package does a great job of caching the routes, however, in a true PWA we also need an offline mode. So when the user is offline and it navigates to a page that is not cached it should display something. Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Sure, the feature is implemented. To get started simply add a |
Beta Was this translation helpful? Give feedback.
Sure, the feature is implemented.
To get started simply add a
/_offline
page such aspages/_offline.js
orpages/_offline.jsx
orpages/_offline.ts
orpages/_offline.tsx
. Then you are all set! When the user is offline, all pages which are not cached will fallback to '/_offline'.**Use this example to see it in action**s