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<undefined | Response>;
    open(cacheName: string): Promise<Cache>;
}

Methods

  • Parameters

    • cacheName: string

    Returns Promise<boolean>

  • Parameters

    • cacheName: string

    Returns Promise<boolean>

  • Returns Promise<string[]>

  • Parameters

    Returns Promise<undefined | Response>

  • Parameters

    • cacheName: string

    Returns Promise<Cache>