‹ BackHN Continuity

Thread

We just shipped support for the ugliest part of HTTP: Vary

150 points · 40 comments · thisisfatih

  1. colmmacc · · focus · HN ↗
    Wow this brings back memories. Over twenty years ago I added Vary support to various mod_cache submodules for Apache 2.0, and it was way too high a pain to reward ratio. It just uncovered so many user agent bugs and crazy backends. I remember arguments about being able to cache variable based on non-literal virtual headers (e.g. a geo location header), and a crazy request to Vary based on "Date:" ... which makes absolutely no sense. The whole thing was just too clever for its own good. It's no surprise that language selection ended up in URLs (/en-US/..) rather than "Vary: Accept-Lang" features.
    1. Gigachad · · focus · HN ↗
      I feel like putting as much as possible in the URL is a good thing anyway. If I send someone a link, I can know it's the same document that shows on their browser as mine.
      1. KyleTheDev · · focus · HN ↗
        Yea, from a UX perspective, being able to send your friend a URL and know that they're seeing exactly what you see is awesome. It makes support/debugging/etc nicer too, if you're trying to walk somebody through something.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.