Interface CacheStorage
interface CacheStorage {
delete(cacheName: string): Promise<boolean>;
has(cacheName: string): Promise<boolean>;
keys(): Promise<string[]>;
match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response>;
open(cacheName: string): Promise<Cache>;
}
delete(cacheName: string): Promise<boolean>;
has(cacheName: string): Promise<boolean>;
keys(): Promise<string[]>;
match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response>;
open(cacheName: string): Promise<Cache>;
}
Methods
delete
has
keys
match
- match(request, options?): Promise<Response>
Parameters
- request: RequestInfo | URL
Optional
options: MultiCacheQueryOptions
Returns Promise<Response>
The storage for Cache objects. Available only in secure contexts.
MDN Reference