‹ BackHN Continuity

Thread

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

150 points · 40 comments · thisisfatih

  1. rob-olmos · · focus · HN ↗
    "If the origin response does not include a Vary header, Cloudflare caches the response normally"[1]

    "If one response omits it, Cloudflare could cache that response without the variance needed to keep it isolated."[2]

    Will that non-Vary cache object front-run any Vary-segmented cache objects?

    If so, probably worth adding a snippet rule to ensure every response has a Vary header?

    1: <a href="https:&#x2F;&#x2F;developers.cloudflare.com&#x2F;cache&#x2F;concepts&#x2F;vary&#x2F;#how-vary-affects-cache-keys" rel="nofollow">https:&#x2F;&#x2F;developers.cloudflare.com&#x2F;cache&#x2F;concepts&#x2F;vary&#x2F;#how-v...

    2: <a href="https:&#x2F;&#x2F;blog.cloudflare.com&#x2F;vary-support&#x2F;#how-a-response-moves-through-cache" rel="nofollow">https:&#x2F;&#x2F;blog.cloudflare.com&#x2F;vary-support&#x2F;#how-a-response-mov...

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.