How to clear cache server for Windows 8 browser

Hi, I am facing a problem in my Windows 8 mobile application. I am sending a request to the server using WebClient to pull out the details. I have an on-demand update function available in the application where the user can update the details whenever he wants. The problem is that new parts are not updated. I tried some of the solutions mentioned by adding nocache at the end of the URL. But this solution will not help me, because im actually passes values ​​through this URL to the server, after processing these values ​​on the server side, they redirect the response to " http://mysitezz.com/myfolder/files/details546546546546.xml ". So what if I add? Nocache, I will get an error response. I also tried adding a header to the Webclient, which didn't work either.

     WebClient wctrans = new WebClient();

 //  wctrans.Headers[HttpRequestHeader.LastModifiedSince] = DateTime.UtcNow.ToString();
    wctrans.DownloadStringCompleted += new DownloadStringCompletedEventHandler(UpdateLocalDB);
      wctrans.DownloadStringAsync(new Uri(calculatedURL), nextItem.AccountNo);

Is there any way to solve this problem? Im pretty new to developing apps for windows phones. thanks in advance

+4
source share
2 answers

I could not solve this problem from the client side. Finally, I got the server command to make changes at their end. A terribly problem also occurred in iOS and Android.

+1
source

as per this C # WebClient article, disable cache , use HttpRequest object instead of WebClient

0
source

Source: https://habr.com/ru/post/1529406/


All Articles