]> cat aescling's git repositories - mastodon.git/commit
Make host_meta/webfinger replies cacheable (fixes #6100) (#6101)
authorThibG <thib@sitedethib.com>
Wed, 27 Dec 2017 17:21:12 +0000 (18:21 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Wed, 27 Dec 2017 17:21:12 +0000 (18:21 +0100)
commit868568d1c11227319228ec4066c7017621b9f522
tree7b589f96fd36e2b9fe5ac7a14ca7a6307fbf5b70
parent65f30f65a2816d5b25c096be0f237bbca17608e5
Make host_meta/webfinger replies cacheable (fixes #6100) (#6101)

* Make host_meta/webfinger replies cacheable (fixes #6100)

Drop common code for handling users and sessions as webfinger queries
are very basic, public APIs.

Also explicitly mark results as cacheable with “expires_in”.

* Add “Vary: Accept” header for caching since content-negociation is used
app/controllers/well_known/host_meta_controller.rb
app/controllers/well_known/webfinger_controller.rb