I\'m writing a client that is making repeated http requests for xml data that is changing over time. It looks like the Android stack is caching my page requests and returni
Hint: to get the random string
HttpGet request = new HttpGet(url + "?unused=" + UUID.randomUUID().toString());
add a HTTP header:
Cache-Control: no-cache
and see if that works.
Append an unused parameter on the end of the URL:
HttpGet request = new HttpGet(url + "?unused=" + someRandomString());
where someRandomString()
probably involves the current time.
It's crude, but it's pretty much guaranteed to work regardless of all the outside factors that can make a "proper" solution fail, like misconfigured or buggy proxies.