Created
February 27, 2019 23:12
-
-
Save webmaxru/736ff2a921ec3be46476d0c29c2303e7 to your computer and use it in GitHub Desktop.
Workbox 4: workbox-window. Generated service worker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
importScripts('https://storage.googleapis.com/workbox-cdn/releases/4.0.0/workbox-sw.js') | |
// SETTINGS | |
// Path prefix to load modules locally | |
workbox.setConfig({debug: true}) | |
// Updating SW lifecycle to update the app after user triggered refresh | |
workbox.core.skipWaiting() | |
workbox.core.clientsClaim() | |
// PRECACHING | |
// We inject manifest here using "workbox-build" in workbox-build-inject.js | |
workbox.precaching.precacheAndRoute([ | |
{ | |
"url": "favicon.ico", | |
"revision": "b9aa7c338693424aae99599bec875b5f" | |
}, | |
{ | |
"url": "index.html", | |
"revision": "246a5538082872a1eb50863f13b10a9f" | |
}, | |
{ | |
"url": "styles.6faedebb2a0e50c4221b.css", | |
"revision": "1a0728ccfd858acdb58c8c60d9f9defe" | |
}, | |
{ | |
"url": "main.a723f02294798169bdf9.js", | |
"revision": "9ebd6cdcb6582efa71afc90adf55e495" | |
}, | |
{ | |
"url": "polyfills.f6ae3e8b63939c618130.js", | |
"revision": "56f34b0f4d3a42d45bfdb1782adaa173" | |
}, | |
{ | |
"url": "runtime.ec2944dd8b20ec099bf3.js", | |
"revision": "cd1ce3e306bf57f272364d1cc0249d6e" | |
} | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment