Skip to content

Commit bb71028

Browse files
committed
Now using NoCacheNoStore policy for all web client requests.
1 parent 7119bdd commit bb71028

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

AutoUpdater.NET/DownloadUpdateDialog.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,16 @@ private void DownloadUpdateDialogLoad(object sender, EventArgs e)
4444
}
4545
else
4646
{
47-
_webClient = new MyWebClient
48-
{
49-
CachePolicy = new RequestCachePolicy(RequestCacheLevel.NoCacheNoStore)
50-
};
47+
_webClient = new MyWebClient();
5148

5249
if (AutoUpdater.BasicAuthDownload != null)
5350
{
5451
_webClient.Headers[HttpRequestHeader.Authorization] = AutoUpdater.BasicAuthDownload.ToString();
5552
}
5653
}
5754

55+
_webClient.CachePolicy = new RequestCachePolicy(RequestCacheLevel.NoCacheNoStore);
56+
5857
if (AutoUpdater.Proxy != null)
5958
{
6059
_webClient.Proxy = AutoUpdater.Proxy;

0 commit comments

Comments
 (0)