Skip to main content
method Cache.put
private
Cache.put(
request: RequestInfo | URL,
response: Response,
): Promise<void>
Deprecated

Put the provided request/response into the cache.

How is the API different from browsers?

  1. You cannot match cache objects using by relative paths.
  2. You cannot pass options like ignoreVary, ignoreMethod, ignoreSearch.

Parameters

request: RequestInfo | URL
response: Response

Return Type

Promise<void>
Back to top