Created
July 18, 2017 23:43
-
-
Save gauntface/46b90b81b48568473b1b2966cdb70f29 to your computer and use it in GitHub Desktop.
Example of "workbox.js" being used for precaching
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://some-cdn.cdn.com/workbox/workbox.js'); | |
const workbox = new Workbox(); | |
workbox.precaching.precache([ | |
{url: '/', revision: '123'}, | |
{url: '/main.css', revision: '456'}, | |
]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment