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: RequestInfo | URL,
 options?: MultiCacheQueryOptions,
 ): Promise<Response>
- Parameters- request: RequestInfo | URL
- Optionaloptions: MultiCacheQueryOptions
 - Returns Promise<Response>
The storage for Cache objects. Available only in secure contexts.
MDN Reference