Blog / What is Fastly CDN? Does Fastly work in China?

What is Fastly CDN? Does Fastly work in China?

TL:DR Does Fastly work in China? Yes, Fastly does work in China, but not how you’d expect it to. While it is somewhat accessible in China, Fastly websites struggle with speed, compatibility, and delivery. Read more below.

What is Fastly?

Fastly is a U.S. content delivery network specialising in edge computing. The company highlights specific features as differentiators from their competitors including reverse proxying and instant purging.

The Shopify platform uses both Fastly and Cloudflare to power their sites.

What is a CDN?

CDNs perform a variety of functions. The primary function behind why websites use a CDN is with respect to accelerating the "delivery of content" and its benefits can be broken down into speed and security.

Content delivery networks are a distributed series of servers that store cacheable content closer to the visitor who is trying to access it.

For example, let’s assume your website’s media assets are hosted in the US and delivered within North America using Akamai, Cloudflare, and other Global CDNs.

The combination of a U.S. server with North American CDNs would generally be great for website performance within that geographic region, but not good for further areas such as China.

What is cacheable content? Cacheable content (such as images, videos, or webpages) is stored in servers located closer to end users than origin servers. Most websites contain a combination of static, cacheable content and dynamic content.

This content can further be broken down into primary and third-party resources. It is important to note that CDNs do not accelerate access to third-party resources, leading to potentially slowing down or hindering the website loading.

What does a CDN do in relation to websites in China?

Developers use CDNs in China to accelerate regional delivery for their static files i.e. delivering primary resources closer to users in China (i.e. images or files hosted on their website).

In spite of their limitations in solving all of the common issues arising from loading websites in China, a well-selected CDN is still helpful in resolving some portions of website performance issues that websites face.

More about China CDN comparisons and considerations can be read here.

Does Fastly work in China? It depends.

As Fastly sites are not inaccessible in China, but they

- Lack POPs in China, instead relying on rim CDNs.
- Do not provide China compatibility solutions to handle, resolve, or replace resources that are blocked or inaccessible from China.

But why doesn’t Fastly make websites work in China?

To lay the groundwork, let’s define what it means for a website to work in China in terms of -

(i) Speed
(ii) Compatibility
(iii) Deliverability.

First is that having a CDN does not necessarily mean that content is delivered faster nor that it is hosted within China, thus affecting your website speed.

Due to the requirements to have your site and content hosted within China, the result is that users in China are retrieving files from CDN nodes generally outside of China - often from nodes much farther away than the optimal CDN range. This is especially true given China’s unique and specific internet landscape.

Fastly does not have any POPs inside China (source: Fastly)

CDNs with POPs inside China might help in this respect to a certain extent. However, while primary resources and static files that can be cached by CDNs might experience acceleration, there are elements that CDNs and hosting providers don’t touch that still can cause issues with how your website performs in China.

The second issue that arises for websites working in China comes from code-based incompatibilities on the website itself.

What are code-based incompatibilities in China?

These incompatibilities arise from the variety and multitude of technologies that are blocked or slow to load in China.

These resources include essential libraries widely used by developers globally, popular plugins, and/or default components that website-building platforms inherently include out of the box.

Most modern-day websites are made up of hundreds of these resources.

Examples of blocked third-party resources include Google APIs, Vimeo, Youtube, Facebook, and more. Other primary and or third-party resources*, while not blocked or inaccessible in China. may be delivered from networks that perform slowly in China (i.e. Amazon S3).

Most websites run into deliverability issues in China.

Defining Primary vs. Third-Party Resources: Primary resources are defined as web resources hosted on the primary website domain ( vs. third-party resources which are hosted and managed by third-party providers (e.g.,

What happens when the browser attempts to load blocked or slow technologies from China?

First, a little background on how websites generally load -

A Request is made for HTML document

The web server provides HTML to a web browser to read

The web browser reads HTML files to identify where to find resources

Browser requests resources - including images, CSS, and js files - from the server(s)

The browser parses these files

Finally, the browser then renders (or displays) the webpage

When a browser attempts to load a blocked resource, the web browser will keep trying to retrieve the file for a period of time before it moves on to the next resource. As a result, the loading process gets 'stuck'.

So, not only does that blocked resource:

i) interfere with the total loading time of the website in China, but also
ii) impacts the functionality of a site when, after multiple attempts, the site or parts of its content does not load at all.

Below is an example of a waterfall chart when a China visitor attempted to load resources past Facebook trackers.

Note that by 35 seconds, only 30% of this website's resources have successfully loaded.

What happens when your site has blocked or slow-loading resources?

You end up with a site that loads both partially and slowly and at times takes upwards of 30 seconds, affecting the Deliverability of the website.

How does Chinafy work to improve both speed and accessibility?

Chinafy is a highly tuned complex integration of both Software (i.e. Code) and Infrastructure (i.e. Hardware) that can be bolted onto almost any site and will work with your existing CDNs.

For this reason, Tier 1 Cloud Platforms’ CDN providers partner with Chinafy to achieve full optimization on the FE application layer. Our partners include AWS, Azure and BaishanCloud.

By combining intelligent China-specific resource optimizations with a multi-load-balanced infrastructure, websites are able to achieve significant improvements in performance across the board.

Chinafy first scans your website to create a Chinafy-managed version of your site, detecting resources that are blocked or slow across your site.

Chinafy then optimizes that Chinafy version of your site across infrastructure, resources, and security based on best practices.

Once the Chinafy site is turned on, your China visitors will get directed to the 'Chinafy-version' of your website and all others to the original version of your site.

Chinafy's automation rules then keep the two versions of your site in sync, optimizing your website as it evolves. By combining our Web Compatibility suite with our partnered CDN providers, Chinafy sites are 30-40% faster than sites with near-China CDNs such as Fastly alone.

This way, Chinafy provides the best of both worlds, ensuring that your global web experience for your global visitor remains unaffected while delivering a version of your site that works well for visitors in China.

| Contact us to learn about how Chinafy helps get sites 30-40% faster than just using a CDN.

Don't get left behind.
Optimize your website for the world's fastest-growing consumer market. Start today, cancel anytime.
Make your website work in China
Enter in a few details and one of our Chinafy team members will reach out to you shortly with a plan and next steps to 'Go Live' in China.
Which website do you want to Chinafy?
Tell us your name?
What best describes your company role?
What's your Work Email Address?
What would you like to discuss?
Have a discount code?
By clicking 'Get Started', I also agree to Chinafy's Terms of Service & Privacy Policy.
Thanks for getting in touch!
One of our China experts will be in touch with you via email within the next 24 hours with

1 - Expected post-Chinafy results
2 - Your Custom Plan
3 - Next steps.

P.S. Make sure to check your promotions inbox in case our message lands there.
Please feel free to check out our case studies or blog in the meantime.
[[embed: get started form inline type]]

Related Stories

Load More

Notey will use the information you provide on this form to be in touch with you and to provide updates and marketing. Please let us know all the ways you would like to hear from us:

You can change your mind at any time by clicking the unsubscribe link in the footer of any email you receive from us, or by contacting us at We will treat your information with respect. For more information about our privacy practices please visit our website. By clicking below, you agree that we may process your information in accordance with these terms.

We use Mailchimp as our marketing platform. By clicking below to subscribe, you acknowledge that your information will be transferred to Mailchimp for processing. Learn more about Mailchimp's privacy practices here.