6

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?

Howard
  • 2,005
  • 11
  • 47
  • 70
  • 6
    You probably don't want to use deflate. http://stackoverflow.com/questions/388595/why-use-deflate-instead-of-gzip-for-text-files-served-by-apache/9856879#9856879 – sciurus Mar 30 '12 at 04:14
  • Do you have mod_deflate enabled and configured? http://httpd.apache.org/docs/2.3/mod/mod_deflate.html – Eli Sand Apr 04 '12 at 00:54

1 Answers1

0

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

covener
  • 1,665
  • 9
  • 15