Introduction
If you want to accelerate the access to China (Hong Kong), China (Macao), China (Taiwan), and overseas regions, see use CDN in this topic.
Background
To accelerate the access to resources from users in Hong Kong, Macao, Taiwan, and overseas without changing the origin site deployment, you need to set the region of the CDN domain to global, and assign nodes in Hong Kong, Macao, Taiwan, and overseas regions to the CDN domain. Then, configure the cache rule.
- For static files such as TXT, JS, CSS, audio, MP4, and MP3 files, you can configure appropriate cache rules. In this way, static files are cached on the CDN node for a long time to prevent back-to-origin data.
- For dynamic files such as APIs, PHP files, and JSP files, Dynamic Route for CDN is recommended to the origin.
If your origin sites are deployed in mainland China and users outside mainland China need to access the Origin again. The Origin fetch traffic must be forwarded through long international networks or the international network endpoints of ISPs. To efficiently optimize this channel, we recommend that you also deploy an origin site in Hong Kong, Macao, Taiwan, and overseas regions. Users in Hong Kong, Macao, Taiwan, and overseas regions can access the origin site through CDN. This helps avoid cross-border back-to-origin requests.
Scope
- CDN
- DCDN