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