← Back to CacheStorage domain

CacheStorage.requestCacheNames

Requests cache names.

Domain: CacheStorage experimental

Parameters

NameTypeDescription
securityOrigin (optional)stringAt least and at most one of securityOrigin, storageKey, storageBucket must be specified. Security origin.
storageKey (optional)stringStorage key.
storageBucket (optional)Storage.StorageBucketStorage bucket. If not specified, it uses the default bucket.

Returns

NameTypeDescription
cachesarrayCaches for the security origin.

Example Request

{
  "id": 1,
  "method": "CacheStorage.requestCacheNames"
}

Example Response

{
  "id": 1,
  "result": {
    "caches": []
  }
}

Usage in Node.js

const result = await send('CacheStorage.requestCacheNames');
console.log(result);
// {"caches": []}