This two-part series is a gentle introduction to offline web development. Getting a web application to do something while offline is surprisingly tricky, requiring a lot of things to be in place and functioning correctly….
Source: https://css-tricks.com/making-your-web-app-work-offline-part-1/