# CDN and Caching

### About this export

| Field | Value |
| --- | --- |
| **content_type** | lesson |
| **platform** | contentstack-academy |
| **source_url** | https://www.contentstack.com/academy/courses/contentstack-for-developers/cdn-and-caching |
| **course_slug** | contentstack-for-developers |
| **lesson_slug** | cdn-and-caching |
| **markdown_file_url** | /academy/md/courses/contentstack-for-developers/cdn-and-caching.md |
| **generated_at** | 2026-05-04T05:36:51.197Z |

> Part of **[Contentstack for Developers](https://www.contentstack.com/academy/courses/contentstack-for-developers)** on Contentstack Academy. **Academy MD v3** — structured for retrieval; no quiz or assessment keys.

<!-- ai_metadata: {"lesson_id":"13","type":"text","duration_minutes":1,"topics":["CDN","and","Caching"]} -->

#### Lesson text

# **CDN and Caching**

A Content Delivery Network (CDN) ensures that a cache of your content is stored at various locations around the globe. Consequently, whenever there is a page request, the content is served from the cache of the nearest CDN server, rather than the origin server ensuring quicker content delivery.

## How CDN Cache Works in Contentstack

The CDN is always up-to-date. It ensures that the cache is always fresh through purging old data and caching new data.

When any user requests a piece of content, the nearest CDN server checks if it has a cached copy of the requested content. If not, it checks with the shield server. And, if the shield server does not have the cache of the requested content, it fetches the content from the origin server.

A shield server is an extra layer of caching that reduces the load on the origin server. It is located near the origin server, and it saves the cache of content that it serves to any CDN server. So, if any other CDN server requests the same data, the shield server would serve the cached content.

Contentstack automatically purges content from the internal Contentstack CDN when published.  

Helpful links:

*   [How CDN Cache Management works in Contentstack](https://www.contentstack.com/docs/developers/cdn-and-caching/contentstack-cdn-cache-management/)

#### Key takeaways

- Connect **CDN and Caching** back to your stack configuration before moving to the next module.
- Capture one concrete artifact (screenshot, Postman call, or code snippet) that proves the step works in your environment.
- Re-read the delivery versus management boundary for anything you changed in the entry model.

## Supplement for indexing

### Content summary

CDN and Caching. CDN and Caching A Content Delivery Network (CDN) ensures that a cache of your content is stored at various locations around the globe. Consequently, whenever there is a page request, the content is served from the cache of the nearest CDN server, rather than the origin server ensuring quicker content delivery. How CDN Cache Works in Contentstack The CDN is always up-to-date. It ensures that the cache is always fresh through purging old data and caching new data. When any user requests a piece of content, the nearest CDN server checks if it has a cached copy of the requested content. If not, it checks with the shield server. And, if the shield server does not have the cache of the requested c

### Retrieval tags

- CDN
- and
- Caching
- contentstack-for-developers
- lesson 13
- CDN and Caching
- contentstack-for-developers lesson

### Indexing notes

Index this lesson as a primary chunk tagged with lesson_id "13" and topics: [CDN, and, Caching].
Parent course slug: contentstack-for-developers. Use asset_references URLs as thumbnail hints in search results when present.
Never surface LMS quiz content or assessment answers from this file.

### Asset references

_No image or video thumbnail URLs were extracted._

### External links

| Label | URL |
| --- | --- |
| Contentstack Academy home | `https://www.contentstack.com/academy/` |
| Training instance setup | `https://www.contentstack.com/academy/training-instance` |
| Academy playground (GitHub) | `https://github.com/contentstack/contentstack-academy-playground` |
| Contentstack documentation | `https://www.contentstack.com/docs/` |
| How CDN Cache Management works in Contentstack | `https://www.contentstack.com/docs/developers/cdn-and-caching/contentstack-cdn-cache-management/` |
