matchAsync

fun matchAsync(url: String, options: MultiCacheQueryOptions = definedExternally): Promise<Response?>(source)

The match() method of the CacheStorage interface checks if a given Request or URL string is a key for a stored Response. This method returns a Promise for a Response, or a Promise which resolves to undefined if no match is found.

MDN Reference


fun matchAsync(url: URL, options: MultiCacheQueryOptions = definedExternally): Promise<Response?>(source)
fun matchAsync(request: Request, options: MultiCacheQueryOptions = definedExternally): Promise<Response?>(source)