CacheStorage
The CacheStorage
interface represents the storage for Cache objects. Available only in secure contexts.
Functions
Link copied to clipboard
Link copied to clipboard
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.
Link copied to clipboard
Link copied to clipboard
The match()
method of the CacheStorage interface checks if a given Request or URL string is a key for a stored Response.
Link copied to clipboard
fun matchAsync(url: String, options: MultiCacheQueryOptions = definedExternally): Promise<Response?>
fun matchAsync(request: Request, options: MultiCacheQueryOptions = definedExternally): Promise<Response?>