Alex Rivera | Logout

WP7 HttpWebRequest without caching

Asked 2010-12-16T14:10:47.220
18

It seems that HttpWebRequest caching in WP7 is enabled by default, how do I turn it off? Adding a random param url + "?param=" + RND.Next(10000) works, but it's quite tricky and I'm not sure if it will work with all servers.

Edit
Report

1 Answer

-2

Yes is possible... :) I spend one week of Experiment and the answer is really simple :

      HttpWebRequest _webRequest = WebRequest.CreateHttp(_currentUrl);

     _webRequest.AllowReadStreamBuffering = false
 _webRequest.BeginGetResponse(_onDownload,
 userState);
answered 2011-05-17T15:11:20.187

Your Answer