System.Net.Http.HttpClient adding If-Modified-Since header
问题 I am attempting to issue an Http Get request from a windows universal app and seeing an odd behavior. (not sure if the fact that it is a universal app is related or not). The simplified code in question is this: var client = new HttpClient(); var response = await client.GetAsync("https://storage.googleapis.com/pictureframe/settings.json"); var s = await response.Content.ReadAsStringAsync(); In a unit test or console app that works as expected and the variable s contains the json content.