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