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. Fetching resources only when necessary reduces server trips for users.

When a browser initially requests an app, a link to the manifest file is included in the response.
1<html manifest="/path/to/app.manifest">
The manifest path includes the mode and app name of the app that’s currently running. This manifest file lists framework resources as well as your JavaScript code and CSS, which are cached after they’re downloaded for the first time. A hash in the URL ensures that you always have the latest resources.

You’ll see different resources depending on which mode you’re running in. For example, aura_prod.js is available in PROD mode and aura_proddebug.js is available in PRODDEBUG mode.

Note