Interface CacheStorage

    The storage for Cache objects. Available only in secure contexts.

    MDN Reference

    interface CacheStorage {
        delete(cacheName: string): Promise<boolean>;
        has(cacheName: string): Promise<boolean>;
        keys(): Promise<string[]>;
        match(
            request: RequestInfo | URL,
            options?: MultiCacheQueryOptions,
        ): Promise<Response>;
        open(cacheName: string): Promise<Cache>;
    }

    Methods