Package-level declarations
Types
The CacheStorage
interface represents the storage for Cache objects. Available only in secure contexts.
Functions
The addAll()
method of the Cache interface takes an array of URLs, retrieves them, and adds the resulting response objects to the given cache.
The delete()
method of the Cache interface finds the Cache entry whose key is the request, and if found, deletes the Cache entry 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 You can access CacheStorage
through the Window.caches property in windows or through the WorkerGlobalScope.caches property in workers.
The keys()
method of the Cache interface returns a representing the keys of the Cache.
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 Cache interface returns a Promise that resolves to the Response associated with the first matching request in the Cache object.
The match()
method of the CacheStorage interface checks if a given Request or URL string is a key for a stored Response.
The matchAll()
method of the Cache interface returns a Promise that resolves to an array of all matching responses in the Cache object.
The open()
method of the the Cache object matching the cacheName
.
The put()
method of the Often, you will just want to Window/fetch one or more requests, then add the result straight to your cache.