Glossary · Performance
What is caching?
Caching stores a copy of data or a response so later requests can be served from the copy instead of being recomputed or refetched. Caches live at many layers: the browser, a CDN, the application, and stores such as Redis in front of a database.
Source: MDN: HTTP caching
Why it matters
Caching is often the single biggest lever for speed and cost: a cached response is faster and cheaper than any optimised query.
The hard part is invalidation, making sure people never see stale or someone else's data, which needs a deliberate strategy per layer.
Example
A product listing is cached at the CDN and refreshed whenever a product changes, so most visitors never reach the database.