In iOS Titanium.Network.HttpClient has cache property, which allow to store http responses in locally on device, Ti SDK for Android lack this property. But remote images loaded by ImageView are stored in cache and there is no way to disable it.
I have implemented HttpResponseCache module for Android (simple binding to android.net.http.HttpResponseCache), also I've added cache properties to HttpClient and ImageView.
So attached pathes intoduces this features:
- conditional caching for HttpClient responses and for remote images loaded by ImageView
- configurable http-response cache storage with some statistics
In patches Ti.Android.HttpResponseCache is not installed (enabled) on application start and should be installed manually by calling "install" method. Without enabled Ti.Android.HttpResponseCache "HttpClient.cache = true" will work with TiResponseCache, but "ImageView.cache = false" will not work, because images cached by TiResponseCache anyway.
I think, if you'll find this changes usefull, TiResponseCache class could be totally removed because, as I understand correctly, TiResponseCache was created when HttpResponseCache wasn't exists and stays for now as legacy.