Skip to content

Instantly share code, notes, and snippets.

@jadjoubran
Last active March 15, 2018 15:19
Show Gist options
  • Save jadjoubran/fd83f906faa68323ab5a824a621e2d85 to your computer and use it in GitHub Desktop.
Save jadjoubran/fd83f906faa68323ab5a824a621e2d85 to your computer and use it in GitHub Desktop.
importScripts('https://storage.googleapis.com/workbox-cdn/releases/3.0.0/workbox-sw.js');
console.log('this is my custom service worker');
workbox.precaching.precacheAndRoute([
{
"url": "css/app.css",
"revision": "fd2e1d3c4c8d43da10afe67a7d69fbd1"
},
{
"url": "index.html",
"revision": "39b8fb34f8be7ecf969530f1b9e69ba1"
},
{
"url": "js/app.js",
"revision": "03bde26b6af07cd6bb0378ec0a50e410"
}
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment