mastodon/app
Claire 4bc1fde105 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-11-05 23:46:24 +01:00
..
chewy Change tootctl search deploy algorithm (#14300) 2020-07-14 18:10:35 +02:00
controllers Fix anonymous access to outbox not being cached by the reverse proxy (#16458) 2021-11-05 23:46:24 +01:00
helpers New Crowdin updates (#16269) 2021-05-20 00:19:52 +02:00
javascript Fix WebUI crash when a toot with a playing video gets deleted (#16384) 2021-11-05 23:46:24 +01:00
lib Fix inefficiencies in auto-linking code (#16506) 2021-11-05 23:46:24 +01:00
mailers Prepare Mastodon for Rails 6 (#15911) 2021-03-17 10:09:55 +01:00
models Fix not being able to suspend accounts that already have a canonical e-mail block (#16455) 2021-11-05 20:34:12 +01:00
policies Add management of delivery availability in Federation settings (#15771) 2021-05-05 23:39:02 +02:00
presenters Add server rules (#15769) 2021-02-21 19:50:12 +01:00
serializers Add configuration attribute to GET /api/v1/instance (#16485) 2021-11-05 20:30:02 +01:00
services Fix some link previews being incorrectly generated from other prior links (#16885) 2021-11-05 20:28:59 +01:00
validators Add configuration attribute to GET /api/v1/instance (#16485) 2021-11-05 20:30:02 +01:00
views Change trending hashtags to be affected be reblogs (#16164) 2021-05-07 14:33:43 +02:00
workers Fix when MoveWorker cannot get locale from remote account (#16576) 2021-11-05 20:26:36 +01:00