The CacheStorage interface represents the storage for Cache objects.
Documentation CacheStorage by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
Constructor
Methods
keys():Promise<Array<String>>
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.
match(request:Request, ?options:CacheQueryOptions):Promise<Response>
match(request:String, ?options:CacheQueryOptions):Promise<Response>
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.