Created
February 1, 2019 18:34
-
-
Save jonchenn/f173f673a8cdaa9eb3fb30f140bbf3e4 to your computer and use it in GitHub Desktop.
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
// Workbox with a custom handler to use IndexedDB for caching. | |
workbox.routing.registerRoute( | |
'/graphql', | |
async ({event}) => staleWhileRevalidate(event), | |
'POST' | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment