Skip to content

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

// in practice

A product listing is cached at the CDN and refreshed whenever a product changes, so most visitors never reach the database.

Go deeper

Next step

Need this done properly?

Tell us what you are building. A senior engineer replies within one business day with specific, honest next steps.

First reply
Within 1 business day
Typical start
1–2 weeks
Pricing
Fixed price per phase
You own
All code and accounts