Cache Manifest not detected by iPhone and app not working offline

Today I had a strange behaviour when I moved an supposed-to-work-offline html5 app I’m making to another server. Although everything was just copy-pased it seemed that the apache didn’t serve the cache.manifest file as text/cache-manifest for the iPhone (it worked just as desired on Chrome).
The solution was rather strange and i still don’t know why it worked:

I changed the file extention from cache.manifest to cache.manifesto as following

in the .htaccess:
AddType text/cache-manifest .manifest

in every html file:
<html manifest="cache.manifesto" >

and ofcourse renamed the chache.manifest file.

If you have any ideas why is this happening let me/us know in the comments!

Cheers!

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.