Previous Topic

Next Topic

Book Contents

Book Index

GZIP Compression

GZIP compression allows sending compressed text and application files to clients if requested. In general, the exchange of compressed files proceeds like this:

  1. The client sends the server a request for a resource, indicating with the Accept-Encoding:gzip, deflate request header that the response should be compressed.
  2. The server reads the header, and if compression is on for the MIME type of the requested resource , returns GZIP compressed resource along with the Content-Encoding: gzip response header. For more details refer to HTTP Common Configuration.
  3. The client accepts the resource and uncompresses it.