So I am writing an AutoUpdate tool for my program. So far all has worked good except when I update the file on my site, it still downloads the old version for a while. How can I make it always download the new file instead of (I guess its a cached version). Do I need to change something on my site, or can I do it within vb?
Here is the code for downloading:
Dim client As WebClient = New WebClient
AddHandler client.DownloadProgressChanged, AddressOf client_ProgressChanged
AddHandler client.DownloadFileCompleted, AddressOf client_DownloadCompleted
client.DownloadFileAsync(New Uri("http://www.redpoisonjb.com/timertracker.exe"), "Timer Tracker.exe")