-
We install the Service Worker and then we cache our offline html page.
-
If an user visits our web page and there is no internet connectivity,we return the cached offline html page.
To run the app from a local web server,you can use python or php built-in web server.
- Python
cd dir/
python -m SimpleHTTPServer 3000
- Php
cd dir/
php -S localhost:3000