Last active
September 22, 2017 13:38
-
-
Save benfoxall/73f2dc9536f1fcf3a96fe763e509a45d to your computer and use it in GitHub Desktop.
Other Service Workers
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://unpkg.com/sw-toolbox@3.6.0/sw-toolbox.js') | |
toolbox.router.get('/:path*', toolbox.cacheFirst, { | |
origin: /fonts\.(gstatic|googleapis)\.com/, | |
cache: { | |
name: 'fonts-v1', | |
maxEntries: 10 | |
} | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment