Js_of_ocaml.CacheCache API: persistent storage of Fetch Request/Response pairs.
Available from Dom_html.window and from ServiceWorker contexts; the Cache API requires a secure context. The methods are Promise-typed — see Promise.
class type queryOptions = object ... endOptions controlling how a request is matched against cached entries. Create an empty record with empty_query_options.
val empty_query_options : unit -> queryOptions Js.tclass type multiQueryOptions = object ... endLike queryOptions but with a cacheName to restrict cacheStorage##match_withOptions to a single named cache. Create an empty record with empty_multi_query_options.
val empty_multi_query_options : unit -> multiQueryOptions Js.tclass type cache = object ... endA single named Cache instance, obtained from cacheStorage.
class type cacheStorage = object ... endval caches : unit -> cacheStorage Js.tThe caches global (CacheStorage) for the current origin. Guard with is_supported in environments where the Cache API may be missing.