Share:
Notifications
Clear all

Cache hit in Content Delivery Network

1 Posts
1 Users
0 Reactions
14 Views
(@gauzkhas)
Posts: 16
Active Member
Topic starter
 

A cache hit in a CDN means the requested content is already stored in the CDN’s cache, so it can be delivered immediately without contacting the origin server.]

Meaning

Cache hit = fast response from CDN cache

What happens during a cache hit

  1. User requests a file (e.g., image or JS file)
  2. CDN checks its local storage (edge server)
  3. File is found 
  4. CDN serves it instantly

Why cache hits are important

  • Faster loading  (no round-trip to origin server)
  • Lower latency (served from nearby server)
  • Reduced server load (origin isn’t contacted)
  • Better scalability (handles more users easily)

As Example

  • First user requests /logo.png → not cached → fetched from origin (cache miss)
  • CDN stores it
  • Second user requests /logo.pngcache hit → served instantly

Cache hit ratio

This is a key metric:

  • % of requests served from cache
  • Higher ratio = better performance

 

 
Posted : 05/04/2026 8:42 am
Share: