return a `Vary: Accept` header for all dual-format endpoints #365
Created by: dakkar
/users/:user
, /@:user
, /notes/:note
return different responses
depending on the request's Accept:
header. If we don't consistently
return a Vary: Accept
header, browsers and caching proxies will get
confused, and return AP representations when HTML was requested, or
vice versa.
Checklist
-
Read the contribution guide -
Test working in a local environment -
(If needed) Add story of storybook -
(If needed) Update CHANGELOG.md -
(If possible) Add tests