November 2011
Intermediate to advanced
384 pages
13h 23m
English
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 ...
Read now
Unlock full access