Skip to content

.tips

285 small things, one a day. short enough to read between two other things, with a feed if you want them delivered.

.today

one small thing a day.

Vary tells the cache which headers change the response

If a response differs by Accept-Language or by a custom header, any cache that doesn't know that will serve it to the wrong user.

Vary: Accept-Encoding, Accept-Language

Never put Vary: Cookie on a cached response, because it makes the cache useless. If a response depends on the cookie, it should be no-store or private.

httpcaching

.november

2026, 25 tips.