Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If the server supports HTTP compression at all, invariably it will support gzip, in which case it might compress the response and respond with as indicated in the following response header:

Code Block
titleHTTP response header
Content-Encoding: gzip

 In fact, Apache's mod_deflate module supports gzip  compression (RFC 1952) only.

Info
titleA historical anecdote
The use of the word "deflate" in this context is a misnomer. Here In the HTTP request header above, "deflate" actually refers to zlib (RFC 1950), which (like gzip) is based on deflate compression (RFC 1951). Historically, this unfortunate choice of words has resulted in incompatibilities, which is why you won't find a server that supports "deflate." This is explained in more detail on the ZLIB FAQ page.

...