I have a function which displays images from a binded uri (ie; www.website.com/picture1.jpg).
I have found and now understand that the phone caches the images that are downloaded. I read that its only for the life of the runng of the app, but even when I close the app and go back into it the same images from the cache come up. Is there a way to stop this caching happening at all for this particular page?
EDIT: The images update regularly, but still have the same name, hence the need not to cache. Think security camera for example.
Many thanks.
There's no way around it unless you add a random query string to the image uri on each GET i.e.
The caching is a little too aggressive - If doing a GET to the same Uri on any http request for the applications life cycle - Even if the content changes every time - The phone will cache it. It kept me puzzled for hours when I was trying to talk to a JSON-RPC web service...
Of course in general you will want images to be cached - But if you're sure the images you're after will be changing frequently then the above will work.