If you’re running a site that dynamically generates content, you should probably do some sort of caching to prevent your site from exploding whenever someone posts it on Mastodon and friends.
For example, if you use Caddy, it might look something like this:
@fedi { header_regexp User-Agent (http\.rb/\S+\s\(Mastodon|Friendica|Pleroma\s|Akkoma\s|Misskey/|gotosocial) }
# do something with the detected user agent that's cache-y
Since this blog is static, I just tank the Mastodon hits as necessary, but something to keep in mind if you’re hosting your own thing.