Backend
- Choose the cache key and invalidation rule before adding a cache.
- Distinguish freshness, maximum age, and stale-while-revalidate behavior.
- Never share personalized responses across users through a public cache.

Backend · Original AlgoGym revision note with a source for deeper study.