#import #import // https://w3c.github.io/ServiceWorker/#cache-interface [SecureContext, Exposed=(Window,Worker)] interface Cache { [NewObject] Promise<(Response or undefined)> match(RequestInfo request, optional CacheQueryOptions options = {}); [NewObject] Promise> matchAll(optional RequestInfo request, optional CacheQueryOptions options = {}); [NewObject] Promise add(RequestInfo request); [NewObject] Promise addAll(sequence requests); [NewObject] Promise put(RequestInfo request, Response response); [NewObject] Promise delete(RequestInfo request, optional CacheQueryOptions options = {}); [NewObject] Promise> keys(optional RequestInfo request, optional CacheQueryOptions options = {}); }; dictionary CacheQueryOptions { boolean ignoreSearch = false; boolean ignoreMethod = false; boolean ignoreVary = false; };