interface Cache
Private
put(request: RequestInfo | URL,response: Response,): Promise<void>
Put the provided request/response into the cache.
How is the API different from browsers?
- You cannot match cache objects using by relative paths.
- You cannot pass options like
ignoreVary
,ignoreMethod
,ignoreSearch
.
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
.
delete(request: RequestInfo | URL,options?: CacheQueryOptions,): Promise<boolean>
Delete cache object matching the provided request.
How is the API different from browsers?
- You cannot delete cache objects using by relative paths.
- You cannot pass options like
ignoreVary
,ignoreMethod
,ignoreSearch
.