Created
March 11, 2018 21:31
-
-
Save ritikrishu/cbaaa401839649bbcc03e0a8db89efe7 to your computer and use it in GitHub Desktop.
delete cache by cacheName 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
/** | |
Suppose, origin has caches named "wittr-static-v8" and "wittr-content-imgs" | |
*/ | |
console.log( | |
caches.delete("wittr-static-v8") | |
)// <- true | |
console.log( | |
caches.delete("not existing cache") | |
)// <- false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment