02:30:49
icon

RAM 1GB の貧弱サーバーなので、Misskey 起動したら load average がこの世の終わりみたいな値になってたけど Elasticsearch 動かすのやめたら回復した

02:32:38
icon

どう考えても貧弱サーバーで Elasticsearch 有効にしてたのが悪い

03:20:53
icon

Mastodon v4.2.0-beta1 から Vary フィールドを積極的に使ってキャッシュを制御しようとしているっぽいけど、CloudFront も Cloudflare も Vary は対応してないんだよなあ

Refactor `Cache-Control` and `Vary` definitions by Gargron · Pull Request #24347 · mastodon/mastodon
github.com/mastodon/mastodon/p

Web site image
Refactor `Cache-Control` and `Vary` definitions by Gargron · Pull Request #24347 · mastodon/mastodon
03:22:47
icon

text/html をやめて全てのページで application/activity+json だけ返すようにすれば万事解決(ほんとか?

03:46:34
icon

Vary: Authorization とかも出てくるかー。 API に関しては CDN 側のキャッシュを無効にしないと危ないかもしれないな

Change unauthenticated responses to be cached in REST API by Gargron · Pull Request #24348 · mastodon/mastodon
github.com/mastodon/mastodon/p

Web site image
Change unauthenticated responses to be cached in REST API by Gargron · Pull Request #24348 · mastodon/mastodon
04:11:40
icon

Mastodon + CloudFront の場合は Authorization とか Accept とかキャッシュキーに入れて使ってるだろうし問題にならないか。Cloudflare の方はヘッダーフィールドの値をキャッシュキーに入れるのは Enterprise プランだけだった気がする

18:59:01
icon

八百万会議の話かと思ったら冬コミて
twitter.com/machaki7th/status/