Skip to content

Instantly share code, notes, and snippets.

@YonatanKra
Created June 20, 2023 06:53
Show Gist options
  • Save YonatanKra/8298bf5f593473ec996f163d6a5db8ca to your computer and use it in GitHub Desktop.
Save YonatanKra/8298bf5f593473ec996f163d6a5db8ca to your computer and use it in GitHub Desktop.
self.addEventListener('activate', (event) => {
event.waitUntil(removeOldCache(event));
event.waitUntil(enableNavigationPreload());
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment