default.appcache

shichuan edited this page Apr 4, 2011 · 1 revision

##Storing Data on the Client The manifest file specifies the resources—such as HTML, JavaScript, CSS, and image files —to downloaded and store in the application cache. After the first time a webpage is loaded, the resources specified in the manifest file are obtained from the application cache, not the web server.

###CACHE MANIFEST List of files that you want to cache

CACHE MANIFEST
# version 1
img/l/apple-touch-icon.png
img/l/apple-touch-icon-precomposed.png
img/l/splash.png
img/m/apple-touch-icon.png
img/h/apple-touch-icon.png
img/h/splash.png
css/style.css
js/libs/jquery-1.5.1.min.js
js/libs/modernizr-1.7.min.js
js/libs/css3-mediaqueries-min.js

###NETWORK List of files that you DON't want to cache, you don't have to list all the individual files if they share the same prefix

NETWORK:
#http://example.com/api/

###FALLBACK Fallbacks for the above list

FALLBACK:


Read more at the official guide