-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HttpWebClient always send Cache-Control and Pragma headers when proxy used #110164
Labels
Comments
dotnet-policy-service
bot
added
the
untriaged
New issue has not been triaged by the area owner
label
Nov 25, 2024
HttpClient on its own will not inject these headers. Could it be that whatever proxy server you're using is doing so for you? |
MihaZupan
added
the
needs-author-action
An issue or pull request that requires more info or actions from the author.
label
Nov 25, 2024
dotnet-policy-service
bot
removed
the
needs-author-action
An issue or pull request that requires more info or actions from the author.
label
Nov 25, 2024
Sorry, checked it in 2 another local proxies and there is no these headers |
dotnet-policy-service
bot
removed
the
untriaged
New issue has not been triaged by the area owner
label
Nov 25, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried different ways, but when you use HttpClient with Proxy you will get Cache-Control: no-cache and Pragma: no-cache in request headers.
It's possible to prevent it? I don't need these headers when using proxy.
The text was updated successfully, but these errors were encountered: