match method

JSPromise<Response?> match(
  1. RequestInfo request, [
  2. CacheQueryOptions options
])

The match() method of the Cache interface returns a Promise that resolves to the Response associated with the first matching request in the Cache object. If no match is found, the Promise resolves to undefined.

Implementation

external JSPromise<Response?> match(
  RequestInfo request, [
  CacheQueryOptions options,
]);