Hacker News

New stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. From biologists, math could learn to live with AI(terrytao.wordpress.com)
    discuss
  2. Do Social Norms Substitute for Enforcement? [pdf](nber.org)
    discuss
  3. Trying to Observe Convection Plumes (and other chaos things)(chillphysicsenjoyer.substack.com)
    discuss
  4. Human Glitch – twenty small web experiences, each one starts free(humanglitch.ai)
    discuss
  5. iPhone 18 Pro Max SSD drops lower than hard drive at 1.1 MBs during heavy writes(tomshardware.com)
    discuss
  6. Google says its AI model gained unauthorized access to three outside systems(nbcnews.com)
    discuss
  7. Shipping local speech-to-text inside a Tauri app(writewithset.com)
    discuss
  8. Libnix: Nix as a Backend to Cargo(github.com/nixcloud)
    discuss
  9. The one-person unicorn: building a company alone in two days with Claude(leaveyouragent.com)
    discuss
  10. Gemini 3.8 TTS Playground(simonwillison.net)
    discuss
  11. Jev deserves hype but not the type its getting(github.com/yididev)
    1comments
  12. Meta VR Glasses(meta.com)
    11comments
  13. US investigates after F-35 parts diverted to Hong Kong(politico.com)
    2comments
  14. The Full Stack Obliteration(reinhash.com)
    1comments
  15. Linux on Snapdragon X2 Series Early Developer Preview(qualcomm.com)
    discuss
  16. Every U.S. State Ranks Above Every Foreign Economy in Household Consumption(twitter.com/cremieuxrecueil)
    1comments
  17. Show HN: Submit asynchronous LLM batch jobs through one interface(github.com/gojiplus)
    discuss
  18. Show HN: A CC0 museum of retro 3D tricks you can paste into a page(3d-retro.com)
    1comments
  19. OpenAI agent hacked into Australia's national healthcare system(cnn.com)
    2comments
  20. LatentPort: Cross-model recurrent state transfer without prefix replay(arxiv.org)
    discuss
  21. Stanford violated AI policy after race-swapping students in ad(sfchronicle.com)
    1comments
  22. Post-Training Post-Morten: Tenet / Harvey(newpriors.substack.com)
    discuss
  23. UK shares findings of damning climate crisis national security report(theguardian.com)
    discuss
  24. Tiny C Compiler with POSIX superpowers(github.com/muras69)
    1comments
  25. The Majority of Actors Are Struggling(pajiba.com)
    discuss
  26. Fire in the brain: How psychosis may arise when the body attacks itself(knowablemagazine.org)
    discuss
  27. We've Turned Starlink into a Planetary Barometer(spaceweather.com)
    2comments
  28. One setup, every AI CLI with agnostic-AI(agnostic-ai.org)
    1comments
  29. Why did Google declare war on HTTP? (2016)(josh.com)
    1comments
  30. Show HN: NetHackers(dunnolab.ai)
    2comments

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

35 pointsby 2h agoblog.cloudflare.com
4 comments
52m 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.

43m 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...