News for hackers. Stuff that matters.
Re:Why I Tend Not to Use Content Negotiation by 4death4 on Sunday November 19, 2023 @09:40PM (#38341553)
This sounds like a misconfiguration. I haven't used Cloudflare, but I've used other CDNs, and they need to generate a cache key with as few header values as possible to maximize the cache hit rate. The headers used in generating the cache key is configurable, so if you want to use the accept header in your application, then you're free to do so, but you need to tell Cloudflare that's an important part of your application.
Re:Why I Tend Not to Use Content Negotiation by simonw on Sunday November 19, 2023 @10:31PM (#38341939)
That's the problem: they don't respect the Vary header for HTML or JSON documents, just for images.

It's a documented decision that they've made.