Content-Encoding
The Content-Encoding header indicates any special encodings that have been performed on the resource. If the resource has been encoded (if this header is present), the encoding only affects the content section of the HTTP message. It is important to note, although this may seem obvious, that the encoding does not affect the content type in any way. Once the content has been properly decoded, it will have the type indicated in the Content-Type entity header. The primary use of encoding is to compress the resource in order to ease and accelerate network transfer.
A Web client will indicate the types of encoding that it supports via the Accept-Encoding request header. This triggers the encoded response that is sent in the HTTP ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access