---
title: "How do I deliver content in mainland China?"
description: "Four ways to deliver Contentstack content to visitors in mainland China, from the global CDN to an in-China CDN, and how to choose between them."
url: "https://www.contentstack.com/docs/solution-center/deliver-content-in-mainland-china"
product: "Contentstack"
doc_type: "guide"
audience:
  - developers
  - admins
version: "current"
last_updated: "2026-11-30"
---

# How do I deliver content in mainland China?

Yes. Contentstack content reaches websites and apps in mainland China by default, with nothing to set up. This guide explains how that works, and when and how to add a dedicated setup that serves content from inside China, behind the Great Firewall.

**Note:** This guide describes technical delivery options. It isn't legal advice. Confirm licensing and regulatory requirements with your legal team or local partner.

## Covered by default: the global CDN

Contentstack delivers content through an active-active multi-CDN setup on Cloudflare and Fastly. Either CDN can carry all the traffic on its own, so delivery keeps running if one has a problem. Requests from mainland China are served from the nearest points of presence just outside it, usually in Hong Kong or elsewhere in Asia, depending on how the request routes. None of them sit inside the mainland, so requests cross the Great Firewall on the public path. That path is usually reliable, but its speed and availability vary, and the variability comes from the firewall crossing, not from the distance.

There's nothing to build and nothing to provision, and for many sites it's all you need. The CDN network around China is dense, and Hong Kong and Macau are outside the firewall, so they're served like any other market.

**Where it fits:** a light China presence, campaign and marketing sites, or any case where you aren't yet committed enough to China to want an ICP filing and a private line. It stops fitting for commerce and transactional traffic, where an occasional slow or failed request costs you something real.

## When you need a dedicated setup in China

If China traffic matters commercially and you want it served from inside the mainland, something has to sit on the domestic side. There are three ways to do that. Below is the one we recommend, followed by the alternatives and where each one fits.

**At a glance:**

*   **Recommended:** Pull content across a private cross-border line into an in-China CDN that you operate. It covers content and assets together, needs no China-specific code, and crosses the Great Firewall on a licensed link rather than the public internet.
*   **If you build static:** Push your generated files into a store inside China with a CDN in front of it.
*   **If you need your own copy:** Hold the content in your own in-China database and serve it from your own API. DataSync provides the replication layer so you only build the parts you want to own.

![The global CDN covers mainland China by default, and three dedicated options serve content from inside it. Authoring stays in the global CMS either way.](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/amdabf9985cea10597/506056af8cb0e884eb3bec42/china-options-overview-v2.png)

## Recommended: an in-China CDN behind a private cross-border line

![Recommended setup: content is pulled from Contentstack's CDN into a proxy you run in Hong Kong, carried across a private line into your China cloud region, and served by an in-China CDN to a frontend hosted in China. Global visitors are served exactly as today.](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/amcf39532fd4062590/a5c6315b60e637f62d8d931e/china-private-line-v2.png)

### How it works

Global audiences are served exactly as they are today, from Contentstack's global CDN. Nothing about that changes.

For mainland China the delivery path stays inside infrastructure you operate. Content is pulled from Contentstack's CDN at its nearest points of presence, typically Hong Kong, into a proxy in a cloud account you own outside the Great Firewall. From there it travels across a private line from a licensed carrier, hooked up with something like AWS Direct Connect, into your China cloud region. A CDN on an ICP-filed domain then serves your China channels. Because the line crosses the border legally, your China traffic doesn't depend on the public route through the firewall.

Cache behavior does the rest. A short TTL keeps content fresh, stale-while-revalidate hides the cross-border fetch from visitors, and stale-if-error keeps the site up if the line drops.

### Configure the proxy

The proxy is a standard reverse proxy with caching. Configure it as follows:

*   Forward the Content Delivery API, GraphQL, image, and asset hostnames for your region. In AWS North America these are cdn.contentstack.io, graphql.contentstack.com, images.contentstack.io, and assets.contentstack.io. [API endpoints](/docs/administration/api-endpoints) lists the hostnames for every region.
*   Pass the api\_key and access\_token headers through to Contentstack unchanged. The delivery token is read-only and scoped to one environment.
*   Cache on the full URL, including the query string. Parameters such as environment, locale, and image transformations change the response.
*   Keep Live Preview and other preview requests out of the cache. Editors preview through Contentstack's global endpoints.
*   Ask your China cloud and CDN providers about IPv6 support, which Chinese regulators increasingly expect public websites to offer.

### Why we recommend it

What you get

Why it matters

Covers content and assets together

Delivery API responses and media assets travel the same path, so there's no second pipeline to build and maintain for imagery and video.

Nothing to re-implement

Your China frontends use the same APIs and schemas as your global sites, through your China CDN hostname. No China-specific codebase, and no content drift between regions.

A legal border crossing

The private line runs through a licensed carrier and the domestic CDN sits on an ICP-filed domain, so requests never depend on the unpredictable public path through the firewall.

Freshness is a cache policy question

A short TTL of around ten minutes keeps content current. Stale-while-revalidate serves the cached copy immediately while a fresh one is fetched behind it, so nobody waits on the border hop.

It stays up during an outage

Stale-if-error keeps the China site serving the last good cache if the private line has a telecom problem, rather than going dark.

Light to operate

Once provisioned this is a network and configuration concern rather than an ongoing engineering commitment. Bandwidth needs are modest, so the running cost is a flat, predictable network expense.

### What you own, and the one thing to plan for

This design runs inside your own China cloud account, such as AWS China, Alibaba Cloud, or Tencent Cloud, across a private line you contract from a licensed carrier, behind an ICP-filed CDN domain. Sites that sell online usually need an ICP commercial license as well. Your China frontend is hosted in China too. All of that is standard for operating in China and it stays under your control. Contentstack provides the content origin, not the private line.

**Note:** Asset URLs in API responses point to Contentstack's image and asset domains, such as images.contentstack.io and assets.contentstack.io. Rewrite them to your China CDN hostname in the frontend or at the edge.

The thing worth planning for is asset cache warming. Heavy media, high-resolution imagery and video in particular, should not rely on the first visitor to trigger the initial cross-border fetch. That first fetch is slow enough to be visible. A small [webhook](/docs/headless-cms/about-webhooks) on asset publish can pre-warm the China edge so the first person to arrive already gets a cached file. It's a small, well-understood addition, and it's easier to build in at the start than to add after launch.

## Alternatives to the recommended setup

The recommendation above isn't the only workable answer. Each of the two patterns below is the right call in some circumstances.

### Push static files into China

If you already build a static site, or you're planning to, you can keep that process exactly as it is and push the generated output to a file store inside China, an S3 bucket in AWS China or equivalent, with a CDN in front of it.

![A publish in Contentstack fires a webhook, your build pipeline generates the files, and the output is uploaded to your global hosting and to object storage in China, where an in-China CDN serves it on an ICP-filed .cn domain.](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/am04da9ebd89070f1a/39cf9798b342070c6922f513/china-static-push.png)

**Where it fits:** fully or mostly static sites, content that changes on a predictable cadence, and teams already running static site generation who would rather extend a pipeline they understand than take on a network project.

**What to watch:** every content change now needs a build and a push, so the time between an editor hitting publish and a shopper in Shanghai seeing the change is your build time rather than a cache TTL. Anything that needs a live API call at request time, personalization being the obvious one, won't work through this path without a separate route for it.

### Sync content to your own database in China with DataSync

If you have a firm requirement to keep a full copy of the content inside China and serve it from your own delivery API, that route is entirely workable, and DataSync removes most of the build effort.

![Contentstack sends publish, unpublish, and delete events to DataSync in your China account. DataSync writes them to your datastore, and your own delivery API serves China channels from there.](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/am59fbd1f4cd25366a/30ed8cdc11700d3a0ab2b46e/china-datasync.png)

#### What DataSync does

[DataSync](/docs/headless-cms/about-contentstack-datasync) keeps a local database continuously in step with your Contentstack stack. A webhook listener and a sync manager watch for publish, unpublish, and delete events, then write the latest version of your content and assets into a datastore you control. MongoDB and the filesystem are supported out of the box, with an AWS S3 option. Your own API then reads from that local store and serves your China channels. DataSync runs on Node.js, and the API you build on top of the datastore can use any language or framework. The Synchronization API in the [Content Delivery API](/docs/developers/apis/content-delivery-api) covers the same ground if you would rather drive the sync yourself.

**Additional Resource:** See [Get started with Contentstack DataSync](/docs/headless-cms/get-started-with-contentstack-datasync) to set up the webhook listener, the sync manager, and your content and asset stores.

#### Why it helps

The hard part of the own-database pattern is the replication itself: capturing every change reliably, handling assets alongside entries, and keeping the copy consistent when something fails halfway through. DataSync is that layer, so you build and own only the pieces you wanted to own, the datastore and the API in front of it, rather than the machinery underneath.

**What to watch:** you're now running a database and an API inside China, with the operational load that comes with it. You also inherit things the delivery API gives you for free, including query behavior, reference resolution, and schema changes reaching your endpoints.

## Which option to choose

So which one should you pick? Side by side, the four approaches trade setup effort against control and predictability.

Approach

Setup effort

Assets covered

Freshness

What you run

In-China CDN behind a private line

Network provisioning, one off

Yes, same path as content

Around ten minutes

Private line, CDN, China cloud account

Global CDN (default)

None

Yes

Immediate

Nothing

Static files pushed into China

Build and deploy pipeline

Yes, if assets are pushed too

Your build time

Build pipeline, storage, CDN

Your own store with DataSync

Application build

Yes, into your datastore

Near real time

Database, API, hosting

If your China traffic matters commercially, start with the private line and the in-China CDN. It costs a network project up front and almost nothing afterwards, and it's the only option that gives you domestic delivery without a second codebase to keep in step. The global CDN covers everything else by default, and the other two dedicated options are there for when your build model or your compliance position points you at them.

## Authoring from China and data residency

All four options govern how content is delivered into China. Contentstack has no [region](/docs/administration/about-regions) in mainland China, so editors keep authoring in the global CMS, including editors based in China, who usually connect through the company network. Any in-China data residency requirement needs to be assessed on the authoring side separately, on its own terms.

## Frequently asked questions

### Does Contentstack work in China?

Yes, by default. Content reaches visitors in mainland China through Contentstack's active-active CDN with no extra setup, served from points of presence just outside the mainland. For consistent performance on commercial sites, add a dedicated setup such as an in-China CDN behind a private cross-border line, as described in the recommended setup above.

### Does Contentstack have a China region?

No. Contentstack has no region in mainland China. Editors work in the global CMS, and delivery moves in-country with one of the patterns in this guide.

### Do I need an ICP license?

To serve a website from inside mainland China, the domain needs an ICP filing, held by your local entity or partner. Sites that sell online usually need an ICP commercial license as well. Serving from the global CDN outside the mainland doesn't need one. This isn't legal advice; confirm the requirements for your business with your legal team or local partner.

### Which option is best for e-commerce in China?

The recommended setup: an in-China CDN behind a private line. It gives domestic delivery for content and assets without a second codebase to keep in step.

### Can I use Alibaba Cloud or Tencent Cloud?

Yes. The in-China CDN and hosting for the private line, static files, and DataSync options can run on AWS China, Alibaba Cloud, or Tencent Cloud.

### How quickly do content changes reach China?

With the in-China CDN, as fast as your cache TTL, typically minutes. With static files, your build and upload time. With DataSync, near real time.

### Which Contentstack hostnames does the China proxy need to forward?

The Content Delivery API, GraphQL, image, and asset hostnames for your region. In AWS North America these are cdn.contentstack.io, graphql.contentstack.com, images.contentstack.io, and assets.contentstack.io. [API endpoints](/docs/administration/api-endpoints) lists the hostnames for every region.

### Do Hong Kong and Macau need a separate setup?

No. Hong Kong and Macau are outside the Great Firewall and are served by the global CDN like any other market.

## Related documentation

*   [About Contentstack DataSync](/docs/headless-cms/about-contentstack-datasync)
*   [Get Started with Contentstack DataSync](/docs/headless-cms/get-started-with-contentstack-datasync)
*   [Content Delivery API](/docs/developers/apis/content-delivery-api)
*   [Image Delivery API](/docs/developers/apis/image-delivery-api)
*   [API Endpoints](/docs/administration/api-endpoints)
*   [About Webhooks](/docs/headless-cms/about-webhooks)
*   [About Regions](/docs/administration/about-regions)
*   [How many stacks do I need for multiple sites, brands, and regions?](/docs/solution-center/multi-site-multi-brand-and-multi-region-setups)