Methods

Chrome DevTools

CacheStorage.deleteCache #

Deletes a cache.

Parameters

cacheId
CacheId

Id of cache for deletion.


Chrome DevTools

CacheStorage.deleteEntry #

Deletes a cache entry.

Parameters

cacheId
CacheId

Id of cache where the entry will be deleted.

request
string

URL spec of the request.


Chrome DevTools

CacheStorage.requestCachedResponse #

Fetches cache entry.

Parameters

cacheId
CacheId

Id of cache that contains the entry.

requestURL
string

URL spec of the request.

requestHeaders
array[ Header ]

headers of the request.

Return object

response
CachedResponse

Response read from the cache.


Chrome DevTools

CacheStorage.requestCacheNames #

Requests cache names.

Parameters

securityOrigin
Optional
string

At least and at most one of securityOrigin, storageKey, storageBucket must be specified. Security origin.

storageKey
Optional
string

Storage key.

storageBucket
Optional
Storage.StorageBucket

Storage bucket. If not specified, it uses the default bucket.

Return object

caches
array[ Cache ]

Caches for the security origin.


Chrome DevTools

CacheStorage.requestEntries #

Requests data from cache.

Parameters

cacheId
CacheId

ID of cache to get entries from.

skipCount
Optional
integer

Number of records to skip.

pageSize
Optional
integer

Number of records to fetch.

pathFilter
Optional
string

If present, only return the entries containing this substring in the path

Return object

cacheDataEntries
array[ DataEntry ]

Array of object store data entries.

returnCount
number

Count of returned entries from this storage. If pathFilter is empty, it is the count of all entries from this storage.

Types

Chrome DevTools

CacheStorage.Cache #

Cache identifier.

Type: object

Properties

cacheId
CacheId

An opaque unique id of the cache.

securityOrigin
string

Security origin of the cache.

storageKey
string

Storage key of the cache.

storageBucket
Optional
Storage.StorageBucket

Storage bucket of the cache.

cacheName
string

The name of the cache.


Chrome DevTools

CacheStorage.CachedResponse #

Cached response

Type: object

Properties

body
string

Entry content, base64-encoded. (Encoded as a base64 string when passed over JSON)


Chrome DevTools

CacheStorage.CachedResponseType #

type of HTTP response cached

Type: string

Allowed values: basic, cors, default, error, opaqueResponse, opaqueRedirect


Chrome DevTools

CacheStorage.CacheId #

Unique identifier of the Cache object.

Type: string


Chrome DevTools

CacheStorage.DataEntry #

Data entry.

Type: object

Properties

requestURL
string

Request URL.

requestMethod
string

Request method.

requestHeaders
array[ Header ]

Request headers

responseTime
number

Number of seconds since epoch.

responseStatus
integer

HTTP response status code.

responseStatusText
string

HTTP response status text.

responseType
CachedResponseType

HTTP response type

responseHeaders
array[ Header ]

Response headers


Chrome DevTools

CacheStorage.Header #

Type: object

Properties

name
string
value
string