Skip to main content

All Questions

3 votes
1 answer
4k views

HTTP Client NoCache Flag Cause Null Reference Exception C# [duplicate]

I added this line to apply no caching in HTTP Client HttpClient httpClient = new HttpClient(); httpClient.DefaultRequestHeaders.CacheControl.NoCache = true; When i run the app which was working fine ...
Ali123's user avatar
  • 797