Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Meta VR Glasses(meta.com)
    11comments
  2. Linux support is coming to Snapdragon X2 Series(qualcomm.com)
    34comments
  3. Claude discovers a novel enzyme system with CRISPR-like repeats(anthropic.com)
    495comments
  4. VSCode's SSH Agent Is Bananas (2025)(fly.io)
    67comments
  5. Mercury 2.5 LLM hits 770 tokens per second(artificialanalysis.ai)
    9comments
  6. Fixing the Portobello Police Station Clock(pointinthecloud.com)
    84comments
  7. We just shipped support for the ugliest part of HTTP: Vary(cloudflare.com)
    4comments
  8. LensVLM: Compressing long context as images, expanding only relevant pages(huggingface.co)
    5comments
  9. Italian parliament votes for return to nuclear energy(apnews.com)
    350comments
  10. The "Windows XP Box" (2003)(mini-itx.com)
    discuss
  11. ArXiv receives multiyear commitments to support it as an independent nonprofit(arxiv.org)
    discuss
  12. The mystery animal on an ancient god's head(signoregalilei.com)
    13comments
  13. A brief history of Windows scroll bar shortcuts(devblogs.microsoft.com/oldnewthing)
    44comments
  14. We've Turned Starlink into a Planetary Barometer(spaceweather.com)
    2comments
  15. Gemini 3.8 text-to-speech(blog.google)
    118comments
  16. The Curious Power of Punctuation(newyorker.com)
    2comments
  17. Radicle: Disclosure of Vulnerability in the Network Protocol(radicle.dev)
    45comments
  18. Tokens too cheap to meter(jyn.dev)
    176comments
  19. Making Tailscale Faster(tailscale.com)
    15comments
  20. Swap, ZRAM, Zswap and Hibernate on NixOS(matthewbrunelle.com)
    5comments
  21. I don't want the details(michaelheap.com)
    192comments
  22. Show HN: I built a post-mortem debugger for native Windows x64/x86 crashes(forensicdbg.com)
    4comments
  23. Z80 REPL (2018)(abagames.github.io)
    18comments
  24. Claude Code reads AGENTS.md only when telemetry is on [fixed](szypowi.cz)
    250comments
  25. 28% of job postings on company career sites have been open over 90 days(unlisted.careers)
    281comments
  26. Once Claude can measure something, it can make it faster(claude.dev)
    90comments
  27. A refined phylochronology of the second plague pandemic in Western Eurasia(pnas.org)
    discuss
  28. Stripe's Knowledge AI Platform(stripe.dev)
    106comments
  29. Seattle City Council votes to ban surveillance pricing in sale of groceries(consumerreports.org)
    179comments
  30. QuestDB (YC S20) Is Hiring a Sales Engineer(questdb.com)
    discuss

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

35 pointsby 2h agoblog.cloudflare.com
4 comments
51m agoHN ↗

I've been wanting this from Cloudflare for years.

The classic problem here is if you do that thing where user agents that send "accept: text/html" get HTML, while user agents that don't get JSON or some other format.

This used to be impossible to deploy behind Cloudflare caching, because they ignored the Vary header on anything other than images - so you risked caching the JSON version and then serving it up to someone who was expecting HTML.

(Independent of the Cloudflare feature I ended up deciding never to use that pattern, because I prefer having URL that predictably returns HTML or JSON - I add a .json suffix to my apps to serve JSON instead.)

51m agoHN ↗

Nice to see. I’ve used vary to quite a bit of success on CloudFront back in the day.

I actually assumed when I started using Cloudflare that it did have vary support and it led to a serious bug in my sass app at the time.

42m agoHN ↗

I honestly thought they would never ship this. Holy hell this has been a long time coming.

Actual real content negotiation in 2026. Never thought I'd live to see the day.

23m agoHN ↗

"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: https://developers.cloudflare.com/cache/concepts/vary/#how-v...

2: https://blog.cloudflare.com/vary-support/#how-a-response-mov...