Hi William,
> I'm using compression offloading to fix a problem with the gzip
> implementation in my web server. However my requests are also returning
> the cache-control: no-transform header, mainly to stop mobile network
> operators "helpfully optimizing" my responses.
> [...]
> However here is the strange thing, my development environment where I have
> almost the identical config on s local instance of haproxy the compression
> works.
Blind guess: do you use pre -dev18 in your development environment and post-
(or exact) -dev18 in production?
dev18 contains commit 56e9ffa6a6da ("BUG/MINOR: http-compression: lookup
Cache-Control in the response, not the request"), which fixes the no-transform
lookup.
As for your specific case: perhaps you can set the no-transform header in
HAProxy instead of the application?
Regards,
Lukas