Response
Content-Encoding
Specifies the compression algorithm applied to the response body, such as gzip or brotli.
Syntax
Content-Encoding: gzip | br | deflate | identity
Example
Content-Encoding: gzip
Description
Content-Encoding indicates the compression algorithm applied to the response. The browser decompresses content before processing.
Common values: gzip (widely supported), br (Brotli, better compression), deflate (legacy). Selected based on Accept-Encoding.
Compression reduces transfer sizes by 60-80% for text resources. Enable both gzip and Brotli for optimal results.
Check if your website sends this header correctly
Check your headers →