Cache
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. Available only in secure contexts.
interface Cache {
add(request: RequestInfo | URL): Promise<void>;
addAll(requests: RequestInfo[]): Promise<void>;
addAll(requests: Iterable<RequestInfo>): Promise<void>;
matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;
}§Methods
§
add(request: RequestInfo | URL): Promise<void>
[src]§
addAll(requests: RequestInfo[]): Promise<void>
[src]§
addAll(requests: Iterable<RequestInfo>): Promise<void>
[src]§
matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>
[src]