• Register
Welcome to the in5 Answer Exchange! This a place to get answers about in5 (InDesign to HTML5) and make requests.
0 votes
Hi all,

i export a WebApp with "Cache All" option selected,
but when i disconnect my iPad i can't view my site through my WebApp.

I am only one with the problem?
I use InDesign French version…

Thanks a lot for your answer
Cyril
in bugs by (190 points)
    
Hi Cyril, I've experienced this issue, too. Not sure what the cause is, but we'll look into it.
I'm still looking into this, the details are not well described, but according to this answer iOS Web Apps do not have access to the application cache:
http://stackoverflow.com/a/6068797/305650

1 Answer

+1 vote
 
Best answer

Try adding this mime-type to your server. I added this to my .htaccess file:
AddType text/cache-manifest .appcache

It cleared up an error in the Mobile Safari Debug Console, but I'm 100% it enabled the caching in the Web App. I'm finding some accounts that say iOS Web Apps do not have access to the cache (which seems silly), but I'm still looking.

More details on the Application Cache and adding the mime-type:
http://www.html5rocks.com/en/tutorials/appcache/beginner/

Turning on the Debug Console:
http://stackoverflow.com/a/9520603/305650

According to this answer it may be critical to allow the app to fully download before saving to the home screen:
http://stackoverflow.com/a/13314045/305650


UPDATE: By 1) adding the mime-type to the server and 2) fixing any and all errors displayed in the Debug Console (which only show 3) after the entire site/app has loaded--including videos), I was able to get the cache working in the Web App.

by (183k points)
selected by
Also of interest, as of iOS the Web & Web App caches are separate: http://stackoverflow.com/a/12784737/305650