We just shipped support for the ugliest part of HTTP: Vary
Thread
Unofficial Hacker News client; not affiliated with Y Combinator.
We just shipped support for the ugliest part of HTTP: Vary
Unofficial Hacker News client; not affiliated with Y Combinator.
jrochkind1 · · focus · HN ↗
Wow, sometimes I think it's amazing the web works at all!
saltcured · · focus · HN ↗
We generate custom content for a given authentication context. We definitely want caching at the user agent, but we want the cache keyed by the authenticated identity. Otherwise something like logging out and logging in as a different identity can produce monstrously confused results when an SPA or similar mixes some cached and some fresh responses into one page.
rmunn · · focus · HN ↗
I'm sure most people here already knows the joke, but for the lucky 10,000, here's the full joke:
There are only two hard problems in computer science. Naming things, cache invalidation, and off-by-one errors.
[deleted] · · focus · HN ↗
[deleted]