Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

mod_deflate is configured on my Apache 2.2 web server. But my response headers are showing gzip as the Content-Encoding instead of deflate:

HTTP/1.1 200 OK
Date: Mon, 26 Sep 2011 22:26:11 GMT
Server: Apache
Last-Modified: Mon, 26 Sep 2011 11:32:54 GMT
Accept-Ranges: bytes
X-Powered-By: Servlet/2.5 JSP/2.1
Vary: Accept-Encoding,User-Agent
Content-Encoding: gzip
Age: 36
Content-Length: 144338
Keep-Alive: timeout=15
Connection: Keep-Alive
Content-Type: text/html; charset=UTF-8

Notice this line:

Content-Encoding: gzip

Is this normal?

share|improve this question
up vote 6 down vote accepted

Yes, that's normal.

If you read the Apache 2.2 mod_deflate docs, gzip is all over them. That's the compression and decompression scheme that mod_deflate uses (via the zlib library).

share|improve this answer
Thanks for the confirmation. – Mike M. Lin Sep 26 '11 at 23:17

"gzip" is nothing but DEFLATE with a CRC-32 checksum and some header / footer info. What you see is just what the module is doing.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.