Tech

Cache

Definition

A temporary storage layer that saves copies of frequently accessed data so future requests can be served faster without recomputing or re-fetching the data.

Try the free calculator

Use our JSON Formatter to run the numbers yourself.

A cache is a high-speed storage mechanism that stores copies of data so that future requests for that data can be served more quickly. Caching exists at multiple levels: browser cache (stores web assets locally), CDN cache (stores content at edge servers), application cache (stores computed results), and CPU cache (stores frequently accessed memory).

Web caching strategies include setting appropriate Cache-Control headers, using ETags for validation, implementing service workers for offline caching, and leveraging CDNs for static asset distribution. Proper caching can reduce server load by 50-90% and dramatically improve page load times.

Cache invalidation, determining when cached data is stale and needs refreshing, is famously one of the two hard problems in computer science. Strategies include time-based expiration (TTL), event-based invalidation, and cache-aside patterns where the application manages cache updates explicitly.

Related Calculators

Related Terms

Related Articles

Stay Updated

Get notified about new tools, features, and exclusive deals. No spam, ever.