App Cache Limits?

44 views
Skip to first unread message

KCL

unread,
Jun 24, 2011, 2:37:20 PM6/24/11
to iphone...@googlegroups.com
OK.  Lots of conflicting info out there regarding the application cache that allows one to run offline.

Can someone who's actually been successful at a real-world offline web application share some of the results of your pain?

What is the actual per-file size limit?

Are there any traps I need to keep an eye out for?


Thanks in advance,

Scott.

KCL

unread,
Jun 29, 2011, 12:05:54 AM6/29/11
to iphone...@googlegroups.com
To answer my own question, it seems that 25K is the limit/file.

A couple of things that (so far) seem to be the case.

When you implement the cache manifest file, even emptying the cache in Safari will NOT clear it for your app.  You need to modify the cache file so as to trigger the cache to refresh itself.  I find that once I had it working, I deleted the cache for development, re-built it on the staging site when we push a new update for review.

Jonathan Stark's cache debugger was invaluable.  It's simple, but worked well.

Giacomo Balli

unread,
Jun 29, 2011, 11:31:10 AM6/29/11
to iPhoneWebDev
Hi Scott,
I don't have a number but I somehow doubt the limit is 25k per file.
This especially considering that as it was noted at WWDC, also media
files will be eligible for cache manifest.
> Jonathan Stark's cache debugger<http://jonathanstark.com/blog/2009/09/27/debugging-html-5-offline-app...>was invaluable.  It's simple, but worked well.
Reply all
Reply to author
Forward
0 new messages