Client cache

G

Gopi

Hi,
I am using the following code to read ServerManifest.xml
file at Web server. But if I update the ServerManifest.xml
file at server, client doesn't download the latest one. It
shows the cached one always. But if I give url as
http://machinename/MyUpdates/ServerManifest.xml instead of
http://172.16.1.206/MyUpdates/ServerManifest.xml, then
webclient gets the latest one from the server.

Dim myWebClient As New WebClient
Dim remoteUrl As String
= "http://172.16.1.206/MyUpdates/ServerManifest.xml"
Dim myDatabuffer As Byte() = myWebClient.DownloadData
(remoteUrl)
Dim download As String =
System.Text.Encoding.ASCII.GetString(myDatabuffer)
MsgBox(download)

Pls let me know how to avoid client caching to ensure that
Client always gets the latest ServerManifest.xml. I need
to do that in .net code only instead of using IE setting
etc.

TIA
-Gopi
 
H

Herfried K. Wagner [MVP]

Gopi said:
I am using the following code to read ServerManifest.xml
file at Web server. But if I update the ServerManifest.xml
file at server, client doesn't download the latest one. It
shows the cached one always. But if I give url as
http://machinename/MyUpdates/ServerManifest.xml instead of
http://172.16.1.206/MyUpdates/ServerManifest.xml, then
webclient gets the latest one from the server.

You may want to turn to this group:

<
The topic of this group is "Windows Forms Programming".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top