Hi,
I have haproxy in front of my app servers, these app servers do not handle 
accept-encoding properly.
So I need to remove accept-encoding header from the requests sent to backend 
while keep haproxy gzip the response.
How can I do that?
My config looks this:
frontend web    compression algo gzip    compression type 
application/octet-stream text/css text/html text/javascript 
application/javascript text/plain text/xml application/json    mode http    
default_backend appbackend app    http-request del-header Accept-Encoding
I remove accept-encoding in backend not frontend, so I thought the requests 
sent to backend do not contain Accept-Encoding, so the backend app servers will 
handling the requests properly. and since the requests frontend accepted 
contains Accept-Encoding, so frontend will gzip the response.
But in fact it's not working, I cannot get haproxy gzip the response.
How can I do that?

Reply via email to