Newer Version Available

This content describes an older version of this product. View Latest

Loading Resources with AppCache

A cache manifest file is a simple text file that defines the Web resources to be cached offline in the AppCache.

AppCache and Aura

The cache manifest is auto-generated for you at runtime if you have enabled AppCache in your application. If there are any changes to the resources, the framework updates the timestamp to trigger a refetch of all resources.

When a browser initially requests an app, a link to the manifest file is included in the response. The browser retrieves the resource files that are listed in the manifest file, such as the JavaScript and CSS files, and they are cached in the browser cache. Finally, the browser fetches a copy of the manifest file and downloads all resources listed in the manifest file and stores them in the AppCache.