]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: compression: automatically disable compression for older browsers
authorWilly Tarreau <w@1wt.eu>
Fri, 26 Oct 2012 00:11:25 +0000 (02:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 26 Oct 2012 00:54:31 +0000 (02:54 +0200)
commit05d846092f7ef23b1158768cc7d1d40debe001a0
tree2d2d12520519d15904e2c05d730622d0973d9849
parent82fe75c1a79dac933391501b9d293bce34513755
MINOR: compression: automatically disable compression for older browsers

A number of older browsers have many issues with compressed contents. It
happens that all these older browsers announce themselves as "Mozilla/4"
and that despite not being all broken, the amount of working browsers
announcing themselves this way compared to all other ones is so tiny
that it's not worth wasting cycles trying to adapt to every specific
one.

So let's simply disable compression for these older browsers.

More information on this very detailed article :

   http://zoompf.com/2012/02/lose-the-wait-http-compression
src/proto_http.c