CacheStorage
The CacheStorage
interface represents the storage for Cache objects. Available only in secure contexts.
Functions
The delete()
method of the CacheStorage interface finds the Cache object matching the cacheName
, and if found, deletes the Cache object and returns a Promise that resolves to true
.
The delete()
method of the CacheStorage interface finds the Cache object matching the cacheName
, and if found, deletes the Cache object and returns a Promise that resolves to true
.
The has()
method of the CacheStorage interface returns a Promise that resolves to true
if a Cache object matches the cacheName
.
The keys()
method of the CacheStorage interface returns a Promise that will resolve with an array containing strings corresponding to all of the named Cache objects tracked by the CacheStorage object in the order they were created.
The keys()
method of the CacheStorage interface returns a Promise that will resolve with an array containing strings corresponding to all of the named Cache objects tracked by the CacheStorage object in the order they were created.
The match()
method of the CacheStorage interface checks if a given Request or URL string is a key for a stored Response.
The match()
method of the CacheStorage interface checks if a given Request or URL string is a key for a stored Response.
The open()
method of the CacheStorage interface returns a Promise that resolves to the Cache object matching the cacheName
.