Created
October 10, 2017 03:20
-
-
Save glauberramos/1c87e820b9cf970c1fca8070c2765551 to your computer and use it in GitHub Desktop.
Runtime caching using workbox
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
workboxSW.router.registerRoute('https://cdnjs.cloudflare.com/(.*)', workboxSW.strategies.staleWhileRevalidate({}), 'GET'); | |
workboxSW.router.registerRoute('https://res.cloudinary.com/dc3dnmmpx/image/upload/(.*)', workboxSW.strategies.staleWhileRevalidate({}), 'GET'); | |
workboxSW.router.registerRoute('https://unpkg.com/(.*)', workboxSW.strategies.staleWhileRevalidate({}), 'GET'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment