match
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.
inline suspend fun CacheStorage.match(request: Request, options: MultiCacheQueryOptions): Response?(source)
inline suspend fun CacheStorage.match(url: String, options: MultiCacheQueryOptions): Response?(source)
The match()
method of the CacheStorage interface checks if a given Request or URL string is a key for a stored Response.