In my .NET Standard project I'm using System.Net.Http.HttpClient
. How can I disable all caching (request caching especially) in HttpClient
?
If server sends responses with no cache header problem solves. But I want to make this on client side. I want to completely disable all caching.
Thanks.
Edit: It looks like I could use WebRequestHandler
but this does not exist in .NET standard. I can only use HttpClientHandler
but HttpClientHandler
doesn't have any option about caching.