↓Skip to main content

Http

2026


Your cache key probably has Accept-Encoding in it

If your cache stores compressed bodies, the encoding has to be part of the key. Putting the raw header there splits one entry into four, and getting it subtly wrong serves a gzip label on an uncompressed body.