CacheStorage
ExperimentalDependencies: Storage
No symbols match your filter.
Commands
CacheStorage.deleteCache
Deletes a cache.
Parameters
| Name | Type | Description |
|---|---|---|
cacheId
|
CacheId |
Id of cache for deletion. |
CacheStorage.deleteEntry
Deletes a cache entry.
Parameters
| Name | Type | Description |
|---|---|---|
cacheId
|
CacheId |
Id of cache where the entry will be deleted. |
request
|
string |
URL spec of the request. |
CacheStorage.requestCacheNames
Requests cache names.
Parameters
| Name | Type | Description |
|---|---|---|
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
| Name | Type | Description |
|---|---|---|
caches
|
array<Cache> |
Caches for the security origin. |
CacheStorage.requestCachedResponse
Fetches cache entry.
Parameters
| Name | Type | Description |
|---|---|---|
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
| Name | Type | Description |
|---|---|---|
response
|
CachedResponse |
Response read from the cache. |
CacheStorage.requestEntries
Requests data from cache.
Parameters
| Name | Type | Description |
|---|---|---|
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
| Name | Type | Description |
|---|---|---|
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
CacheId
(string)
Unique identifier of the Cache object.
CachedResponseType
(string)
type of HTTP response cached
Allowed Values
basiccorsdefaulterroropaqueResponseopaqueRedirect
DataEntry
(object)
Data entry.
Properties
| Name | Type | Description |
|---|---|---|
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 |
Cache
(object)
Cache identifier.
Properties
| Name | Type | Description |
|---|---|---|
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. |
Header
(object)
Properties
| Name | Type | Description |
|---|---|---|
name
|
string |
|
value
|
string |
CachedResponse
(object)
Cached response
Properties
| Name | Type | Description |
|---|---|---|
body
|
binary |
Entry content, base64-encoded. |