Content-Encoding

How the body was compressed, such as gzip or br (Brotli).

Explained

Examples

Example

Content-Encoding: br

Watch out

Content-Length then counts the compressed bytes. Compressing an already compressed file (a JPEG, a ZIP) wastes time for no gain.

Defined in RFC 9110 §8.4.

Other common headers