Friday, May 30, 2014

Playing with App Cache

I wanted a page to be accessible on my cell phone, even in cases where I had no network coverage. Obviously, appcache is a good solution.


Some links to useful resources:



htaccess additions

Here are my .htaccess file additions for the directory which is utilizing appcache (http://sagar.org/qrc/):


.
.
.
AddType text/cache-manifest .appcache

ExpiresActive On
ExpiresByType text/cache-manifest "access plus 0 seconds"






Adding an appcache manifest



CACHE MANIFEST
# 2014-05-30 v0.1

CACHE:
/qrc/index.html
/qrc/sagarorg_qrc.png

FALLBACK:
/qrc/ /qrc/index.html


No comments:

Post a Comment