IT lexicon › Web › Content-Encoding

Content-Encoding

Web På svenska → Updated: 2026-05-24

HTTP header that says which compression was applied to the response — typically gzip, br (Brotli), newer zstd.

The client signals support via Accept-Encoding: br, gzip. The server picks the best match and responds with Content-Encoding: br. Brotli (Google, 2015) gives ~20 % better compression than gzip on text. Zstd (Facebook) is faster than Brotli but has newer browser support. Pre-compressed static files: ship style.css.br + style.css.gz alongside the original, the server serves the right one based on Accept-Encoding.

← Back to the lexicon