Thèmes / API design preferencePoint de vue reformulé
Preference for URL-based content negotiation over Accept headers
Simon Willison independently chose not to use Accept-header–based content negotiation, preferring predictable URLs—for example, using a '.json' suffix to serve JSON.
Derrière ce point de vue
Les traductions sont destinées à la lecture ; les extraits originaux restent la source evidence.
Comment: We just shipped support for the ugliest part of HTTP: Vary
Extrait original
(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.)