Kompresi (Accept-Encoding / gzip / br)

Press your own CSS with real gzip and weigh its bytes: how small does it get, and what about a photo pressed again, a body pressed twice, a halte with no…

Why it matters

Compression cuts the text bytes crossing the wire, so pages arrive sooner. But a photo pressed again grows, a body pressed twice reads as garbage, a halte with no Vary hands a gzip copy to a client that did not ask, and DevTools shows two numbers that are often swapped: bytes on the wire and bytes unpacked.

The key idea

Content-Encoding belongs to the contents; Transfer-Encoding to one connection

Common mistakes

Try it in this playground