Skip to content

Instantly share code, notes, and snippets.

@indreklasn
Created June 29, 2019 17:24
Show Gist options
  • Save indreklasn/00720d3eddb20b599bb6410a7d04a8b5 to your computer and use it in GitHub Desktop.
Save indreklasn/00720d3eddb20b599bb6410a7d04a8b5 to your computer and use it in GitHub Desktop.
/**
* Welcome to your Workbox-powered service worker!
*
* You'll need to register this file in your web app and you should
* disable HTTP caching for this file too.
* See https://goo.gl/nhQhGp
*
* The rest of the code is auto-generated. Please don't update this file
* directly; instead, make changes to your Workbox build configuration
* and re-run your build process.
* See https://goo.gl/2aRDsh
*/
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
self.addEventListener('message', (event) => {
if (event.data && event.data.type === 'SKIP_WAITING') {
self.skipWaiting();
}
});
/**
* The workboxSW.precacheAndRoute() method efficiently caches and responds to
* requests for URLs in the manifest.
* See https://goo.gl/S9QRab
*/
self.__precacheManifest = [
{
"url": "app.js",
"revision": "8a63dfbf401360b61d594c8efb2e2d0d"
},
{
"url": "index.html",
"revision": "82bb2316ec12df9f1a7ddf3d756fdde9"
},
{
"url": "manifest.json",
"revision": "05bf9462cda2e18fb0e4e8d7b19cd4d8"
},
{
"url": "package-lock.json",
"revision": "ba76f0df6065e18a8ad36ed99cdc7b9a"
},
{
"url": "package.json",
"revision": "58bf5e7f8cb23b9a35c56ea84ce671b0"
},
{
"url": "server.js",
"revision": "2f796fa386feca8332eee0eef5af79c3"
},
{
"url": "service-worker.js",
"revision": "c1db51876de83e712154e57005558012"
},
{
"url": "styles.css",
"revision": "db248e727f72cb6f843beffd6d88761f"
},
{
"url": "workbox-config.js",
"revision": "6feeff43c6a5b04a07ce408558020122"
},
{
"url": "yarn.lock",
"revision": "37834ac70804a3b7040bbe19bd8086d9"
}
].concat(self.__precacheManifest || []);
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment