Hi,

 

Is the caching issue fixed, or is there a workaround. I found this 

 

http://stackoverflow.com/questions/4983782/monotouch-iphone-httpwebreque
st-turn-off-caching

 

after some searching but didn't get an answer. 

 

Code is

 

HttpWebRequest request =
WebRequest.Create(String.Format(UPDATE_REQUEST_URL, new
Random(999).ToString())) as HttpWebRequest;  // anti-caching URL

request.CachePolicy = new
System.Net.Cache.RequestCachePolicy(System.Net.Cache.RequestCacheLevel.B
ypassCache);

request.Headers.Add("Cache-Control", "no-cache");

request.BeginGetResponse(new
AsyncCallback(ProcessHttpResponseAndForget), request);

 

thanks,

 

Jon

_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to