haproxytech / kubernetes-ingress

HAProxy Kubernetes Ingress Controller
https://www.haproxy.com/documentation/kubernetes/
Apache License 2.0
717 stars 200 forks source link

content-encoding question #677

Open pasztorl opened 1 month ago

pasztorl commented 1 month ago

Hi,

I have a backend application which have terrible performance if it got the accept-encoding header and compresses the response. I hope kubernetes-ingress can help to offload the compression from the application. On first try I used backend-config-snippet on the ingress object and added "http-request del-header Accept-Encoding". With this configuration the application not compresses the response and works great but now I have large http responses to the clients. How can I configure haproxy-ingress to do the compression between the client and haproxy and deny between haproxy and the application? Thanks!

stale[bot] commented 23 hours ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.