addAsync

external fun addAsync(url: String): Promise<Void>(source)
external fun addAsync(url: URL): Promise<Void>(source)
external fun addAsync(request: Request): Promise<Void>(source)

The add() method of the Cache interface takes a URL, retrieves it, and adds the resulting response object to the given cache.

MDN Reference