Skip to content

Instantly share code, notes, and snippets.

@webmaxru
Last active August 30, 2017 19:00
Show Gist options
  • Save webmaxru/47435a61c11ddde8cc5bb08476ba4da8 to your computer and use it in GitHub Desktop.
Save webmaxru/47435a61c11ddde8cc5bb08476ba4da8 to your computer and use it in GitHub Desktop.
importScripts('workbox-sw.prod.v2.0.0.js');
const fileManifest = [
{
"url": "index.html",
"revision": "a2153190bf7f353370efd3f79df6fd9a"
}
...
];
const workboxSW = new self.WorkboxSW();
workboxSW.precache(fileManifest);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment