Retrieves a Response object from the cache. You should resolve
with undefined
if the cached value is not found, expired, or
invalid. Do NOT reject the returned Promise.
Contains information you can use to create
a cache key. Typically, the url
is unique enough to act as a key.
See the example code.
Stores a Response object in the cache. Resolve the returned promise when the object has been cached OR if the caching operation fails. Do NOT reject the returned Promise.
Contains information you can use to create
a cache key. Typically, the url
is unique enough to act as a key.
See the example code.
The Response to cache. This is the value that should be returned from Cache.get.
A promise resolved when the value is cached.
Stores and retrieves Response objects.
withCache()
asDataCache()