This two-part series is a gentle, high-level introduction to offline web development. In Part 1 we got a basic service worker running, which caches our application resources. Now let’s extend it to support offline….
Source: https://css-tricks.com/making-web-app-work-offline-part-2-implementation/