Post by @jorijn

Graph from NGINX Ingress
Graph from NGINX Ingress

#mastoadmin

In search for caching rules or config for public API pages in Mastodon. I know unauthenticated paths such as /users/<user> allow for public caching up to 180 seconds according to the Cache-Control header(s).

Did anyone already try to utilise this to lessen the load on the Ruby application?

I'm seeing surges up to 1200% of regular traffic for the same two or three URLs at that point, effectively DDoSing us.

Screenshot is from last night. All requests were made to the same user.