[null, {"document_url": "http://www.the4thdimension.net/2011/08/html5-application-cache-tutorial.html", "unformatted_src": "http://1.bp.blogspot.com/-I6QxcmWT8Ek/TlaHB6tKAJI/AAAAAAAAAaY/f3Dr-B6IshY/s1600/appCacheImage.png", "src": "http://1.bp.blogspot.com/-I6QxcmWT8Ek/TlaHB6tKAJI/AAAAAAAAAaY/f3Dr-B6IshY/s1600/appCacheImage.png", "formatted_filename": "appCacheImage"}, null, {"document_url": "http://www.the4thdimension.net/2011/08/html5-application-cache-tutorial.html", "unformatted_src": "http://www.linkwithin.com/pixel.png", "src": "http://www.linkwithin.com/pixel.png", "formatted_filename": "pixel", "alt_text": "Related Posts Plugin for WordPress, Blogger..."}, null, null, null, {"document_url": "http://www.the4thdimension.net/2011/08/html5-application-cache-tutorial.html", "unformatted_src": "http://dl.dropbox.com/u/16272703/unnamed.png", "src": "http://dl.dropbox.com/u/16272703/unnamed.png", "formatted_filename": "unnamed", "rendered_width": 200, "rendered_height": 267}, null, null, null]

HTML5 Application Cache Tutorial Hello all, not much time to talk about. Here straight way we goto the tutorial of HTML5 Application Cache. I hope u know what it is and how useful it is, if not, I will tell you in short.

Application Cache or AppCache is HTML5 feature using which whole or a part of website can be made available offline. It has following great advantages.

There are some changes to be made on server in order to provide support for AppCache.
If you are using Apache, LAMP, WAMP, MAMP or any other server based on Apache, follow the steps below.
1. Goto appropriate installation directory or search for httpd.conf file.
2. Add 'AddType text/cache-manifest .appcache' to it and save the file.
3. Restart the server.

Or if you are using Google App Engine. Put the following code in your app.yaml file.

Now you are set to use AppCache for the content hosted from this server.

Download the AppCache Demo Project from here and open index.html

Use Google Chrome to study this sample application. In Chrome browser press 'Ctrl+Shift+I' to open Chrome Developer Tools and click on resources tab. When the index.html downloaded from the above project is loaded in the browser. You should see something link as shown in the picture.

Now just open the cache manifest file and change the version no. in it. Make some change to the already cached files and click refresh in the browser. The newly changed file is cached again.

Application Cache can be used by mobile phones also to make web apps more responsive. Android 2.2 and above supports HTML5 Application Cache.

Update: You can check out what has been cached and what not in your Chrome browser by typing 'chrome://appcache-internals' in the address bar.

Update: If you want to check support for various HTML5 features in your browser, you can use the following Apps.

Chrome App
Posted by Jay at 9:13 AM
Labels: HTML5, innovation, internet, mobile computing, mobile devices, web server

