News for hackers. Stuff that matters.
Re:Why I Tend Not to Use Content Negotiation by judge2020 on Sunday November 19, 2023 @05:49PM (#38339346)
I think you mean for CDN-cached content, right?

The accept header is passed along, so your server can respond however it wants for dynamic content/not cached by CDN.

Re:Why I Tend Not to Use Content Negotiation by acdha on Sunday November 19, 2023 @08:04PM (#38340743)
Yes - this can be a big problem if it means that users get a cached response which isn’t compatible with their browser. It can also mean that you lose cache efficiency if you don’t get a ton of traffic - one site I worked on would’ve gotten much slower if they used WebP because it would have increased your odds of not getting a CDN-cached response, and the ~10-15% byte size savings just wasn’t worth that.