|
|
|
|
|
by chuckadams
98 days ago
|
|
If you do content negotiation, then it’s imperative to send “Vary: accept” in your response. CF and all other CDNs will automatically do the right thing when they see that header. Content negotiation still has its uses, but most of the time you’re better off using different endpoints. |
|
Akamai is another case where Vary is harmful, from their docs [1]:
Cloudflare's docs do seem to indicate they support the Vary header as does Fastly. But one should read the docs of their CDN to find out the behavior. Do not assume Vary is supported.https://techdocs.akamai.com/property-mgr/docs/rm-vary-header