mastodon/app/controllers/well_known
Claire 5f4831c631 Fix anonymous access to outbox not being cached by the reverse proxy (#16458)
* Fix anonymous access to outbox not being cached by the reverse proxy

Up until now, anonymous access to outbox was marked as public, but with a
0 duration for caching, which means remote proxies would only serve from cache
when the server was completely overwhelmed.

Changed that cache duration to one minute, so that repeated anonymous access
to one account's outbox can be appropriately cached.

Also added `Signature` to the `Vary` header in case a page is requested, so
that authenticated fetches are never served from cache (which only contains
public toots).

* Remove Vary: Accept header from webfinger controller

Indeed, we have stopped returning xrd, and only ever return jrd, so the
Accept request header does not matter anymore.

* Cache negative webfinger hits for 3 minutes
2021-07-03 21:13:47 +02:00
..
host_meta_controller.rb Fix uncaught unknown format errors in host meta controller (#12747) 2020-01-03 05:28:56 +01:00
keybase_proof_config_controller.rb Bump active_model_serializers from 0.10.9 to 0.10.10 (#11311) 2019-07-23 11:10:42 +02:00
nodeinfo_controller.rb Add a nodeinfo endpoint (#12002) 2019-09-29 21:31:51 +02:00
webfinger_controller.rb Fix anonymous access to outbox not being cached by the reverse proxy (#16458) 2021-07-03 21:13:47 +02:00