How to enable deflate content-encoding with Apache2 mod_deflate

apache-2.2mod-deflate

No matter how I test using different value of Accept-Encoding, it always returned as gzip.

curl -I -H  'Accept-Encoding: gzip' http://www.example.com
Content-Encoding: gzip


curl -I -H  'Accept-Encoding: deflate' http://www.example.com
Content-Encoding: gzip

So how to force deflate?

Best Answer

You can't. mod_deflate only ever responds with Content-Encoding: gzip.