has

inline suspend fun CacheStorage.has(cacheName: String): Boolean(source)

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

MDN Reference