Created
March 29, 2018 07:55
-
-
Save jacky810124/eb68177bf684b57a5c3a4360cb75692c to your computer and use it in GitHub Desktop.
PWA Day06 - cache matchAll
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 | |
.open('example-cache') | |
.then(function(cache) { | |
cache | |
.matchAll('/images/') | |
.then(function(response) { | |
response.forEach(function(element, index, array) { | |
cache.delete(element) | |
}) | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment