I hobbled together a service worker script using The Offline Cookbook and documentation from Google.
Not sure what I have wrong here… it is giving the following:
Failed to load ‘http://localhost:4000/’. A ServiceWorker passed a promise to FetchEvent.respondWith() that resolved with non-Response value ‘[Object]’.
Script is on pastebin here.