The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
Triggers the update of the existing cache. If no updates are available, an update will not be forced.
var retval = ApplicationCache.update();
This method has no parameters.
This method can return one of these values.
This exception is thrown if the application cache cannot be found or the status of the cache is obsolete.
This exception is thrown if the application cache cannot be found or the status of the cache is obsolete. For versions earlier than Internet Explorer 10, INVALID_STATE_ERR is returned.
Use this method and check the status before using swapCache.
The update method returns before the update check is complete, so it is a best practice to wait before checking the status property or calling the swapCache method.
The update method is provided for convenience, but is not necessary for basic functionality. Loading or refreshing the page is sufficient.