xamarin - HttpClient is caching requests to the same URL -


on xamarin ios. i'm using httpclient json string. problem ignores updates , gives me same json response if query same url. want not cache , query url , give me new response.

this sounds trivial, there must simple way this. i'm using forms shared project.

i assume setting cache-control header no-cache? client.defaultrequestheaders.cachecontrol.nocache = true;

if still doesn't work - maybe server caching response? if comes down it, can defeat adding cachebuster querystring though. append bogus param , pass unique value each time. example, if url http://my.url.com/resource/someid can defeat caching using http://my.url.com/resource/someid?b=1 , increment "b" param each call.


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo