2 ms·
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 pos
by 4death4 3y ago
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.
- simonw 3y agoThat'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: https://developers.cloudflare.com/cache/concepts/cache-control/#other https://developers.cloudflare.com/cache/concepts/cache-contr...