Skip to content

Commit

Permalink
Now using NoCacheNoStore policy for all web client requests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ravibpatel committed Jun 7, 2019
1 parent 7119bdd commit bb71028
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions AutoUpdater.NET/DownloadUpdateDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,16 @@ private void DownloadUpdateDialogLoad(object sender, EventArgs e)
}
else
{
_webClient = new MyWebClient
{
CachePolicy = new RequestCachePolicy(RequestCacheLevel.NoCacheNoStore)
};
_webClient = new MyWebClient();

if (AutoUpdater.BasicAuthDownload != null)
{
_webClient.Headers[HttpRequestHeader.Authorization] = AutoUpdater.BasicAuthDownload.ToString();
}
}

_webClient.CachePolicy = new RequestCachePolicy(RequestCacheLevel.NoCacheNoStore);

if (AutoUpdater.Proxy != null)
{
_webClient.Proxy = AutoUpdater.Proxy;
Expand Down

0 comments on commit bb71028

Please sign in to comment.