Log in

View Full Version : Forcing internet refetch in C#


berrinam
20th May 2006, 23:59
MeGUI now has AutoUpdate, which gets files from megui.org, according to an xml manifest file on there. However, the problem is that some people's systems (including mine) cache the manifest file, so they won't detect an update. The workaround I've been using is to go to the manifest file in Firefox and force it to refresh, but that's obviously a really tedious thing to do. Is there any way to force C# to grab a new copy (not a cached copy) of the internet files it downloads, the same way web browsers do on refresh?

dimzon
21st May 2006, 17:19
MeGUI now has AutoUpdate, which gets files from megui.org, according to an xml manifest file on there. However, the problem is that some people's systems (including mine) cache the manifest file, so they won't detect an update. The workaround I've been using is to go to the manifest file in Firefox and force it to refresh, but that's obviously a really tedious thing to do. Is there any way to force C# to grab a new copy (not a cached copy) of the internet files it downloads, the same way web browsers do on refresh?

just request

http://www.somehost.bla/somefile.bla?random=bla-bla-bla
instaed of
http://www.somehost.bla/somefile.bla

I prefer Guid.New().ToString("N") for random parts

berrinam
22nd May 2006, 06:53
Ugh.... is that how Firefox does it as well?

dimzon
22nd May 2006, 06:56
Ugh.... is that how Firefox does it as well?
No, it is'nt