↓Skip to main content

Go

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.

Stop returning the top ten

A fixed result count is a guess that is wrong in both directions. Finding the elbow in the score curve is about fifteen lines, and it lets the query decide how many results it deserves.