---
title: "Caches GET/HEAD responses for ActivityPub endpoints (actor profiles, featured…"
date: 2026-02-22T12:49:08.634Z
author: Ricardo Mendes
url: https://rmendes.net/notes/2026/02/22/thundering-herd/
type: notes
categories:
  - "Fedi"
  - "AP"
ai_text_level: "0"
tokens: 96
content_signal: ai-train=yes, search=yes, ai-input=yes
---

# Caches GET/HEAD responses for ActivityPub endpoints (actor profiles, featured…

Caches GET/HEAD responses for ActivityPub endpoints (actor profiles, featured posts, notes, webfinger, nodeinfo) so hundreds of simultaneous fetches from federated instances are served from nginx instead of hitting Node.js. 

Uses proxy_cache_lock to prevent **thundering herd** and proxy_cache_use_stale to serve during backend overload. POST /inbox and admin pages bypass the cache.
