Hey everybody !
Now, Shall we begin !
I have just two documents : index.php – style.css ( just a basic example !)
We Are not going to talk about the stysheet, we don’t actually need it
This is my first HTML5 Caching System
No Notice the “Manifest” in the html tag
It’s basicly a file named “Cache.manifest“, yes, it’s extension is .manifest
That file is going to have this structure :
# version 0.1
Example : if you have 5 pages on your server called ‘index.php’, ‘contact.php’, ‘faq.php’, ‘about.php’, ‘register.php’ (including a stylesheet), teh your cache.manifest is going to have this structure :
# version 0.1
Notice That evry page name have it’s own line, and if you want to add some page in it, just add the file after the style.css
Now, by default, the apache server deos not know files with a “manifest” extension so, you probably gess it, An .htaccess file will solve our problem !
Creat a file named : .htaccess, and add the following
line, and save it in the same directory that you have your pages and the cache.manifest in it :
AddType text/cache-manifest manifest
Now, you’ll have an offline access to your users, cool Hun ?
- The Challenges of Developing Offline Web Apps (toolness.com)
- An update on offline access without Gears (rememberthemilk.com)
- HTML5 Introduction (laongoandong46.wordpress.com)
- HTML5 Offline Version Of Google Docs Coming Soon – Should Microsoft Worry? (digitizor.com)
- Jeremy Keith: HTML5 For Web Designers (adactio.com)
- Bing Marries Native App, HTML5 In Upgraded Mobile Version (searchengineland.com)
- wordpress.com) (bloggoschloggo.