Created
December 23, 2019 13:07
-
-
Save alexpermiakov/fbe2757b9cd852fb6338b2058dfbfaa3 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
self.addEventListener('activate', function (event) { | |
event.waitUntil( | |
caches.keys().then(function (cacheNames) { | |
cacheNames.map(function (cacheName) { | |
if (cacheName.indexOf(cacheVersion) < 0) { | |
return caches.delete(cacheName); | |
} | |
}); | |
}); | |
}) | |
); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment