has method

JSPromise<JSBoolean> has(
  1. String cacheName
)

The has() method of the CacheStorage interface returns a Promise that resolves to true if a Cache object matches the cacheName.

You can access CacheStorage through the Window.caches property in windows or through the WorkerGlobalScope.caches property in workers.

Implementation

external JSPromise<JSBoolean> has(String cacheName);