CREATE AN APPLICATION CACHE MANIFEST

The AppCache uses a manifest file to represent how all the resources — the HTML, JavaScript, CSS, and other files — your website provides are to be made available when the user is disconnected from the Internet. In its most basic form, the manifest file is structured like this:

CACHE MANIFEST
file1.html
file2.js
file3.css
file4.jpg

Save this file with a .manifest extension and reference it in the root html element’s manifest attribute on all static web pages — specifically, all of your *.html files:

<!doctype html>
<html manifest='mysite.manifest'>

When the user visits any page with an AppCache manifest while online, it will download the resource files referenced and store them locally for offline ...

Get HTML5: Your visual blueprint™ for designing rich web pages and applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.