Skip to content

Instantly share code, notes, and snippets.


kypflug/sw-6.js Secret

Created December 15, 2017 01:58
What would you like to do?
self.onactivate = function(event) {
var keepList = ['static-v1'];
caches.keys().then(function(cacheNameList) {
return Promise.all( {
if (keepList.indexOf(cacheName) === -1) {
return caches.delete(cacheName);
Copy link

Hi, can you tell me please what cacheNameList is? is an API object or a variable defined by you? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment