GZIP compression allows sending compressed text and application files to clients if requested. In general, the exchange of compressed files proceeds like this:
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.
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.
The client accepts the resource and uncompresses it.