Created
March 11, 2018 21:13
-
-
Save ritikrishu/b3de66db988fc5e843ef23244f80753c to your computer and use it in GitHub Desktop.
retrieving all cache names from CacheStorage
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
caches.keys() | |
.then(keysArray => { | |
console.log(keysArray) | |
/** | |
["category-1-cache", "some-other-cache", "static-assests-cache", "could be anything"] | |
*/ | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment