This is a live demo illustrating the use of the sw-precache library to make a site's content available offline via service workers.

Check out chrome://serviceworker-internals for info on what's being cached.

Here's a precached image:

Try stopping the local web server (if you're accessing the dist version of this site via localhost) and disabling your network connection, and then visit images/two.png. Since it was precached, it should still load.