addAll method

JSPromise<JSAny?> addAll(
  1. JSArray<RequestInfo> requests
)

The addAll() method of the Cache interface takes an array of URLs, retrieves them, and adds the resulting response objects to the given cache. The request objects created during retrieval become keys to the stored response operations.

Note: addAll() will overwrite any key/value pairs previously stored in the cache that match the request, but will fail if a resulting put() operation would overwrite a previous cache entry stored by the same addAll() method.

Implementation

external JSPromise<JSAny?> addAll(JSArray<RequestInfo> requests);