What is Caching?
Storing copies of frequently accessed data in faster storage to reduce load times and server processing.
Caching stores computed results or fetched data for quick reuse. Types include browser cache (assets), CDN cache (edge content), application cache (computed data in Redis/Memcached), and database cache (query results).
Cache headers (Cache-Control, ETag, Last-Modified) control browser caching. Cache invalidation — knowing when to update cached data — is famously one of the hardest problems in computer science.