A CDN can deliver many different types of content, not just static files. Broadly, content is grouped into static, dynamic, and streaming/media content.
1. Static content (most common)
This is content that doesn’t change frequently and is ideal for caching.
Examples:
- Images (
.jpg,.png,.webp) - CSS & JavaScript files
- Fonts
- Static HTML pages
These are the easiest to cache and give the highest cache hit ratio.
2. Dynamic content
This content is generated on the fly by the server.
Examples:
- API responses
- Personalized dashboards
- User-specific pages (e.g., account info)
CDNs like Cloudflare and Amazon CloudFront can still optimize this using:
- Smart routing
- Short-term caching
- Edge computing
3. Streaming media
CDNs are heavily used for delivering audio and video content.
Examples:
- Video streaming (like movies, lectures)
- Live streaming (sports, events)
- Music streaming
Platforms like Netflix rely heavily on CDNs to deliver smooth playback globally.
4. Downloadable files
Large files can be distributed efficiently via CDNs.
Examples:
- PDFs
- Software downloads
- App updates
Helps reduce load on origin servers and speeds up downloads.
5. Web applications (full sites)
Entire web apps can be accelerated via CDN:
- Frontend assets (React, Angular apps)
- Cached HTML pages
- Edge-rendered content
6. API & JSON data
Modern CDNs can cache and deliver:
- REST API responses
- GraphQL responses
- JSON payloads
Especially useful for:
- Product listings
- News feeds
- Public data APIs
7. Edge-computed content
Advanced CDNs support running logic at the edge:
- A/B testing
- Authentication checks
- Personalization
This reduces the need to hit the origin server.
A CDN can deliver:
- Static content → images, JS, CSS
- Dynamic content → APIs, user data
- Media content → video/audio streams
- Downloads → files, software
- Full web apps & APIs
