A simple Progressive Web Application (PWA) using Service Worker (Workbox).
- Open the URL in a new tab
- Turn off the network/wi-fi
- Reload the page
- Re-establish the network/wi-fi
- Reload the page
The Service Worker will detect a non-connection to the Internet and will load the page previewed for this case. Turning on the network will make it work as before.