Cache
package js.html
Available on js
The Cache
interface provides a storage mechanism for Request
/ Response
object pairs that are cached, for example as part of the ServiceWorker
life cycle. Note that the Cache
interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec.
Documentation Cache by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
Methods
add(request:Request):Promise<Void>
add(request:String):Promise<Void>
addAll(requests:Array<EitherType<Request, String>>):Promise<Void>
delete(request:Request, ?options:Null<CacheQueryOptions>):Promise<Bool>
delete(request:String, ?options:Null<CacheQueryOptions>):Promise<Bool>
keys(?request:Request, ?options:Null<CacheQueryOptions>):Promise<Array<Request>>
keys(?request:String, ?options:Null<CacheQueryOptions>):Promise<Array<Request>>
match(request:Request, ?options:Null<CacheQueryOptions>):Promise<Response>
match(request:String, ?options:Null<CacheQueryOptions>):Promise<Response>
matchAll(?request:Request, ?options:Null<CacheQueryOptions>):Promise<Array<Response>>
matchAll(?request:String, ?options:Null<CacheQueryOptions>):Promise<Array<Response>>
put(request:Request, response:Response):Promise<Void>
put(request:String, response:Response):Promise<Void>
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/Cache.html