Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created June 29, 2020 06:19
Show Gist options
  • Save velotiotech/c8f08caca88b018f96dcfd1f9104419e to your computer and use it in GitHub Desktop.
Save velotiotech/c8f08caca88b018f96dcfd1f9104419e to your computer and use it in GitHub Desktop.
workbox.skipWaiting();
workbox.clientsClaim();
workbox.routing.registerRoute(
new RegExp("/users"),
workbox.strategies.NetworkFirst()
);
workbox.precaching.precacheAndRoute(self.__precacheManifest || [])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment