How to disable Apache http compression (mod_deflate) when SSL stream is compressed
Posted
by
Mohammad Ali
on Server Fault
See other posts from Server Fault
or by Mohammad Ali
Published on 2012-04-12T09:50:13Z
Indexed on
2012/04/12
11:32 UTC
Read the original article
Hit count: 440
I found that Goggle Chrome supports ssl compression and Firefox should support it soon.
I'm trying to configure Apache to to disable http compression if the ssl compression is used to prevent CPU overhead with the configuration option:
SetEnvIf SSL_COMPRESS_METHOD DEFLATE no-gzip
While the custom log (using %{SSL_COMPRESS_METHOD}x) shows that the ssl layer compression method is DEFLATE, the above option did not work and the http response content is still being compressed by Apache.
I had to use the option: BrowserMatchNoCase ".Chrome." no-gzip'
I prefer if there are more general method in case other browsers supports ssl compression or some has a version of chrome that does not have ssl compression.
© Server Fault or respective owner