Skip to content
Snippets Groups Projects
Unverified Commit fb309f3d authored by かっこかり's avatar かっこかり Committed by GitHub
Browse files

return a `Vary: Accept` header for all dual-format endpoints #365 (#13044)


`/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.

Co-authored-by: default avatardakkar <dakkar@thenautilus.net>
Co-authored-by: default avatarsyuilo <Syuilotan@yahoo.co.jp>
parent 4c87e98e
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment