Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4746

Conditional gzipping

$
0
0

@lijeesh wrote:

Hello,

I have a haproxy setup to load balance nodejs processes.

visitors <–> haproxy <–> nodejs

I’d like haproxy to gzip the responses from nodejs. Haproxy should gzip only the responses satisfying a condition. I was thinking to modify nodejs app to add a special HTTP header to the response messages which are to be gzipped and then configure haproxy to gzip responses with this special header field. Is this possible?

Thank you!

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4746

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>