Application Cache
Users have certain expectations of website-delivered apps, notable among them is that the apps should work offline or at least save data if the connection is lost. One way to provide offline assets is to save the data in local storage using the API I talked about in Web Storage, but a better approach might be to use the Application Cache, or AppCache. This is an interface that lists files that should be downloaded by the user agent and stored in the memory cache for use even when a network connection is unavailable.
The first step in making an AppCache is to create a manifest file, a text file with the suffix .appcache, which must be served with the text/cache-manifest MIME type. Link to this manifest using the manifest attribute ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access