WebIDLpedia

CacheStorage interface

Definition

Service Workers Nightly defines CacheStorage



[SecureContext, Exposed=(Window,Worker)]
interface CacheStorage {
  [NewObject] Promise<(Response or undefined)> match(RequestInfo request, optional MultiCacheQueryOptions options = {});
  [NewObject] Promise<boolean> has(DOMString cacheName);
  [NewObject] Promise<Cache> open(DOMString cacheName);
  [NewObject] Promise<boolean> delete(DOMString cacheName);
  [NewObject] Promise<sequence<DOMString>> keys();
};

Methods and attributes that return objects implementing CacheStorage

Referring IDL interfaces/dictionaries

Referring specifications