method Cache.match
Private
Cache.match(request: RequestInfo | URL,options?: CacheQueryOptions,): Promise<Response | undefined>
Return cache object matching the provided request.
How is the API different from browsers?
- You cannot match cache objects using by relative paths.
- You cannot pass options like
ignoreVary
,ignoreMethod
,ignoreSearch
.
request: RequestInfo | URL
optional
options: CacheQueryOptions
Promise<Response | undefined>