This document describes how to accelerate access to resources in COS through CDN.
Log in to the CDN console, click Domain Management on the left sidebar to enter the domain name management page, and click Create a Distribution.
Enter your business domain name in the domain field, select a project and acceleration type, choose whether to enable IPv6 access, and set a tag:
|Region||Chinese mainland: all requests are scheduled to cache nodes in the Chinese mainland.
Outside the Chinese mainland: all requests are scheduled to cache nodes outside the Chinese mainland.
Global: requests are scheduled to the nearest optimal node.
Notes: Acceleration services in and outside the Chinese mainland are billed separately. For more information, see Billing Overview.
|Acceleration Domain Name||1. The domain name can contain up to 81 characters.
2. ICP filing is required for domain names running in the Chinese mainland.
3. Sub-domains (
4. You need to verify the domain name ownership when connecting a wildcard domain name or a connected domain name.
1. If a wildcard domain name is connected here, its sub-domains and second-level wildcard domain names cannot be connected by any other accounts.
2. Domain names in the format of
3. Domain names containing underscores and punycode-converted Chinese characters are now available.
4. Malicious or high-risk domain names cannot be connected to. For more information, see Use Limits.
|Project||(Optional) Project is a set of resources shared by all Tencent Cloud products. You can manage it on the Project Management page.|
|Acceleration type||CDN optimizes acceleration performance based on service type. For better acceleration effect, we recommend selecting the acceleration type similar to that of your actual business.
Static acceleration: applicable to small-scale resource acceleration scenarios such as e-commerce, website, and game photos.
Download acceleration: applicable to downloading scenarios such as game installation packages, audio and video source file downloads, and mobile phone firmware distribution.
On-demand video streaming acceleration: applicable to online education and on-demand video streaming.
|IPv6 Access||(Optional) CDN nodes support IPv4 access by default. IPv6 access will be supported after it is enabled.
Note: IPv6 access is only available in the Chinese mainland.
|Tag||(Optional) A tag is used to manage resources by category from different dimensions. If the existing tags do not meet your requirements, please go to Tag.|
Configure the origin. When the requested resource is not cached on CDN nodes, CDN will forward the request to the origin, pull the requested resource and cache it on CDN nodes.
Configure the node acceleration service:
|Ignore Parameter||A node caches resources by following the
If Ignore Query String is enabled, parameters after "?" in the URL will be ignored before mapping.
By default, this feature is enabled for download and on-demand video streaming acceleration, but not for static acceleration.
|Range GETs||This specifies whether to process partial requests during origin-pull. It can be enabled only if the origin server supports Range GETs. This feature is enabled for COS origin server by default.|
|Cache Configuration||This specifies the expiration period of the node cache, which is 30 days for all files by default. The cache validity period is the longest possible validity. The actual validity may be shorter as affected by the available storage capacity of the node.
You can set the cache configuration based on origin type.
After entering all configuration items on Create a Distribution page, click Submit to add a domain name and wait for the domain name configuration to be delivered over the entire network, which usually takes 5 to 10 minutes.
After successfully adding a domain name, you can view the acceleration CNAME assigned by CDN on the Domain Management page.
You need to add the CNAME record for the domain name at your DNS service provider (such as DNSPod). Acceleration services will become available after the DNS configuration takes effect. For more details, see CNAME Configuration.