Leep.
HomeBusiness DevelopmentWeb & EngineeringWork
Contact
Log in
Leep.

Custom websites and web applications for ambitious companies.

Navigation

  • Home
  • Work
  • Contact

Services

  • Website
  • App
  • AI Implementation

Resources

  • Articles
  • Dictionary

Contact

  • hello@leep.no

© 2026 Leep. All rights reserved.

Back to Dictionary
Technology

What is Cache?

Last updated: January 15, 2025

On this page

TL;DRExampleExplanationWhy It MattersRelated Terms

TL;DR

Cache is temporary storage that saves frequently accessed data so it can be retrieved faster next time, like keeping a book on your desk instead of in the library.

Example

Types of cache:

Browser cache: Your browser saves images, CSS, JavaScript. Next visit, loads from local computer. Why sites load faster on repeat visits.

Server cache: Server saves processed results. Next request, skips processing. Database query took 2 seconds? Cache the result.

CDN cache: Content stored at edge servers. Users get content from nearest location.

How it works: First visit: Load image from server (500ms) Browser caches image. Second visit: Load from cache (5ms)

Cache hit vs. miss: Hit: Data found in cache. Fast. Miss: Data not in cache. Fetch from source.

Explanation

Cache Considerations

Freshness: How long before cache expires? Too short: Miss benefits of caching. Too long: Users see stale content.

Invalidation: When content changes, clear the cache. "There are only two hard things in computer science: cache invalidation and naming things."

Cache headers: Control caching via HTTP headers.

  • Cache-Control: max-age=3600 (1 hour)
  • ETag: Fingerprint for content
  • Last-Modified: When content changed

Cache Strategy

Content TypeCache Duration
Static imagesLong (1 year)
CSS/JS (versioned)Long (1 year)
HTML pagesShort or no cache
API dataDepends on freshness needs

Why It Matters

For Business Owners

Caching makes your site faster. Every millisecond matters. Faster sites have better conversion rates.

Caching reduces server costs. Fewer requests to your server means less computing power needed.

Caching can cause confusion. "I updated the page but still see old content" is usually a cache issue.

Caching strategy matters. Too aggressive = stale content. Too conservative = slow site.

When Users See Old Content

  1. Ask them to hard refresh (Ctrl+Shift+R)
  2. Check CDN cache settings
  3. Verify cache-busting for CSS/JS
  4. Clear server-side cache if applicable

Good cache configuration is part of good website development.

Related Terms

Hosting

Hosting is renting space on a server to store your website files and make them accessible on the internet 24/7.

Frontend

Frontend is the part of a website or app that users see and interact with: buttons, text, images, forms, and animations.

CDN

A CDN (Content Delivery Network) is a network of servers around the world that delivers website content from the location closest to each user.

SEO

SEO (Search Engine Optimization) is the practice of improving your website so it appears higher in Google search results when people search for relevant topics.

Need help with your digital project?

We build websites, apps, and digital solutions for businesses.

Get in touch