open method

JSPromise<Cache> open(
  1. String cacheName
)

The open() method of the CacheStorage interface returns a Promise that resolves to the Cache object matching the cacheName.

You can access CacheStorage through the global caches property.

Note: If the specified Cache does not exist, a new cache is created with that cacheName and a Promise that resolves to this new Cache object is returned.

Implementation

external JSPromise<Cache> open(String cacheName);