HTML5 Application Cache / PDF






Sample of the pdf document :

What is Application Cache?
HTML5 introduces application cache, which means that a web application is cached, and accessible without an internet connection.

Application cache gives an application three advantages:

1.    Offline browsing - users can use the application when they're offline
2.    Speed - cached resources load faster
3.    Reduced server load - the browser will only download updated/changed resources from the server




Browser Support

Application cache is supported in all major browsers, except Internet Explorer.





HTML5 Cache Manifest Example
The example below shows an HTML document with a cache manifest (for offline browsing):
Example
<!DOCTYPE HTML>
<html manifest="demo.appcache">

<body>
The content of the document......
</body>

</html>

Cache Manifest Basics
To enable application cache, include the manifest attribute in the document's <html> tag:
<!DOCTYPE HTML>
<html manifest="demo.appcache">
...
</html>
Every page with the manifest attribute specified will be cached when the user visits it. If the manifest attribute is not specified, the page will not be cached (unless the page is specified directly in the manifest file).
The recommended file extension for manifest files is: ".appcache"
RemarkA manifest file needs to be served with the correct MIME-type, which is "text/cache-manifest". Must be configured on the web server.




The Manifest File
The manifest file is a simple text file, which tells the browser what to cache (and what to never cache).......






Click here for  Download PDF / FREE

0 commentaires: