CacheStorage
js.html.CacheStorage (extern class)
The CacheStorage
interface represents the storage for Cache
objects.
Documentation CacheStorage by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
Instance Members
Checks if a given Request
is a key in any of the Cache
objects that the CacheStorage
object tracks, and returns a Promise
that resolves to that match.
Returns a Promise
that resolves to true
if a Cache
object matching the cacheName
exists.
Returns a Promise
that resolves to the Cache
object matching the cacheName
(a new cache is created if it doesn't already exist.)
Finds the Cache
object matching the cacheName
, and if found, deletes the Cache
object and returns a Promise
that resolves to true
. If no Cache
object is found, it returns false
.
Returns a Promise
that will resolve with an array containing strings corresponding to all of the named Cache
objects tracked by the CacheStorage
. Use this method to iterate over a list of all the Cache
objects.