logoalt Hacker News

jrochkind1today at 12:48 AM2 repliesview on HN

I had not actually realized what a mess Vary is.

Wow, sometimes I think it's amazing the web works at all!


Replies

saltcuredtoday at 12:56 AM

It pains me to think about the important ones like varying on session cookie and authorization headers, and how badly some middleware can confuse things.

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.

show 2 replies
mikestorrenttoday at 1:58 AM

Imagine if we actually built a remote application delivery platform instead of cobbling one onto a glorified document reader