CacheStorage Domain
Methods
CacheStorage.deleteEntry #
Deletes a cache entry.
Parameters
cacheId Id of cache where the entry will be deleted.
request stringURL spec of the request.
CacheStorage.requestCachedResponse #
Fetches cache entry.
Parameters
cacheId Id of cache that contains the entry.
requestURL stringURL spec of the request.
requestHeaders array[ Header ]headers of the request.
Return object
response Response read from the cache.
CacheStorage.requestCacheNames #
Requests cache names.
Parameters
securityOriginOptional
stringAt least and at most one of securityOrigin, storageKey, storageBucket must be specified. Security origin.
storageKeyOptional
stringStorage key.
storageBucketOptional
Storage bucket. If not specified, it uses the default bucket.
Return object
caches array[ Cache ]Caches for the security origin.
CacheStorage.requestEntries #
Requests data from cache.
Parameters
cacheId ID of cache to get entries from.
skipCountOptional
integerNumber of records to skip.
pageSizeOptional
integerNumber of records to fetch.
pathFilterOptional
stringIf present, only return the entries containing this substring in the path
Return object
cacheDataEntries array[ DataEntry ]Array of object store data entries.
returnCount numberCount of returned entries from this storage. If pathFilter is empty, it is the count of all entries from this storage.
Types
CacheStorage.Cache #
Cache identifier.
Type: object
Properties
cacheId An opaque unique id of the cache.
securityOrigin stringSecurity origin of the cache.
storageKey stringStorage key of the cache.
storageBucketOptional
Storage bucket of the cache.
cacheName stringThe name of the cache.
CacheStorage.CachedResponse #
Cached response
Type: object
Properties
body stringEntry content, base64-encoded. (Encoded as a base64 string when passed over JSON)
CacheStorage.CachedResponseType #
type of HTTP response cached
Type: string
Allowed values: basic, cors, default, error, opaqueResponse, opaqueRedirect
CacheStorage.DataEntry #
Data entry.
Type: object
Properties
requestURL stringRequest URL.
requestMethod stringRequest method.
requestHeaders array[ Header ]Request headers
responseTime numberNumber of seconds since epoch.
responseStatus integerHTTP response status code.
responseStatusText stringHTTP response status text.
responseType HTTP response type
responseHeaders array[ Header ]Response headers