Skip to content

Instantly share code, notes, and snippets.

@jadjoubran
Created December 23, 2017 10:49
Show Gist options
  • Save jadjoubran/2066c0cf844457e508f9838d2feeb230 to your computer and use it in GitHub Desktop.
Save jadjoubran/2066c0cf844457e508f9838d2feeb230 to your computer and use it in GitHub Desktop.
workbox.routing.registerRoute(
new RegExp('https://jsonplaceholder.typicode.com/users'),
workbox.strategies.cacheFirst()
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment