Cache: A temporary storage layer that keeps copies of frequently accessed data so future requests can be served faster. Pronounced /kæʃ/ ("cash"), not "catch". A cache keeps a copy of data that is expensive to fetch or calculate, so the next request can be answered faster. It sits between your code and the slower source, such as a database or an external API.
Caching happens at many levels: the browser caches images, a CDN caches pages, your application caches query results in Redis, and the database caches data in memory. Each layer saves time for the one behind it.
What should you keep in mind with Cache?
The hard part is knowing when cached data is outdated. Decide how stale data may be, set an expiry time, and clear the cache when the source changes. A cache that serves wrong prices after an update causes more trouble than a slow page. And the word is pronounced "cash".
Use when reviewing or setting HTTP response headers for a web app or API - security headers (Content-Security-Policy, Strict-Transport-Security, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy), CORS headers, caching headers (Cache-Control, ETag, Last-Modified, Vary) and cookies (Set-Cookie flags). Also use when a security scan reports missing headers.
Optimize cloud costs across AWS, Azure, GCP, and OCI through resource rightsizing, tagging strategies, reserved instances, and spending analysis. Use when reducing cloud expenses, analyzing infrastructure costs, or implementing cost governance policies.
SEO patterns, conventions, and audit for web applications. Use when implementing meta tags, structured data, Core Web Vitals, sitemaps, Open Graph, auditing SEO, or optimizing pages for search engines. Triggers on "audit SEO", "check SEO", "review SEO", or tasks involving search optimization, schema markup, or social sharing meta tags.