xml - Old text file is downloaded while downloading from server -


i trying download xml file server windows store application.

while trying downloading file getting downloaded. when make changes xml file, still downloading old file , changes not reflected. while access xml file in chrome ... changes there.

after time automatically downloads last updated file... , issue continues...

below 2 methods tried download file ...

url: contains direct file path on server.

using xdocument:  string xml = xdocument.load(url,loadoptions.preservewhitespace).tostring();   using httpclient:  string xml = string.empty;                          using (var httpclient = new httpclient())                         {                             xml = httpclient.getstringasync(url).result;                         } 

thanks in advance. kindly help.

yes, sound caching issue. ideally, fix having server send right caching policy file (i.e. not saying it's valid longer is). failing that, can change httpclient.httpbaseprotocolfilter.httpcachecontrol.readbehavior mostrecent, force check newer content if cached entry appears valid.


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -