keys method
The keys()
method of the Cache interface returns a
Promise
that resolves to an array of Request objects
representing the keys of the Cache.
The requests are returned in the same order that they were inserted.
Note: Requests with duplicate URLs but different headers can be returned if their responses have the
VARY
header set on them.
Implementation
external JSPromise<JSArray<Request>> keys([
RequestInfo request,
CacheQueryOptions options,
]);