mirror of
https://github.com/microsoft/WSL.git
synced 2025-12-10 00:44:55 -06:00
Disable HTTP cache when reading the distribution manifest over HTTP (#13383)
This commit is contained in:
parent
17bd3716b4
commit
6121b56152
@ -101,7 +101,11 @@ DistributionList ReadFromManifest(const std::wstring& url)
|
||||
}
|
||||
else
|
||||
{
|
||||
const winrt::Windows::Web::Http::HttpClient client;
|
||||
const winrt::Windows::Web::Http::Filters::HttpBaseProtocolFilter filter;
|
||||
filter.CacheControl().WriteBehavior(winrt::Windows::Web::Http::Filters::HttpCacheWriteBehavior::NoCache);
|
||||
filter.CacheControl().ReadBehavior(winrt::Windows::Web::Http::Filters::HttpCacheReadBehavior::NoCache);
|
||||
|
||||
const winrt::Windows::Web::Http::HttpClient client(filter);
|
||||
const auto response = client.GetAsync(winrt::Windows::Foundation::Uri(url)).get();
|
||||
response.EnsureSuccessStatusCode();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user