Skip to content

Instantly share code, notes, and snippets.

@kmaraz
Last active December 8, 2019 10:16
Show Gist options
  • Save kmaraz/82eef036aa2eb0991316ba8d8736fbb9 to your computer and use it in GitHub Desktop.
Save kmaraz/82eef036aa2eb0991316ba8d8736fbb9 to your computer and use it in GitHub Desktop.
workbox.core.setCacheNameDetails({
prefix: 'admin',
suffix: 'v1',
precache: 'precache',
runtime: 'runtime'
});
// We force the new service worker to immediately take control of open pages
workbox.core.skipWaiting();
workbox.core.clientsClaim();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment