When connecting a website to Baidu AI Cloud CDN, a working CNAME is only the first step. The origin must answer the configured host name, and HTTPS certificates and cache rules must suit the application. Test with a public static file before shifting production traffic; login pages, carts and other personalized responses must not inherit shared-cache rules intended for static assets.
The steps below are based on Baidu AI Cloud documentation checked on 2026-11-28. Console permissions, regions and actual settings depend on the account.
Check Region, Domain and Origin
According to the domain requirements, a domain accelerated in mainland China must have a valid MIIT ICP filing. The documentation does not require filing for the global region excluding mainland China. Content review and any account identity verification also apply.
Prepare a reachable origin IP, origin domain or object storage, plus a certificate for public HTTPS. An origin domain must differ from the acceleration domain to avoid a DNS origin loop. The origin configuration guide describes origin types, origin Host and protocols. Origin firewalls and access controls must permit CDN fetches without unnecessarily exposing the origin.
Add the Domain and Switch DNS
The diagram separates browser-to-CDN HTTPS from the CDN-to-origin connection: configure and verify each independently.
- Enable the service in the CDN console. Follow Add an acceleration domain to select the workload, region, domain and origin. A separate test subdomain reduces the risk of the initial cutover.
- Set origin Host to the name the origin actually serves. For HTTPS origin fetches, the origin must support HTTPS; check its certificate, port and SNI. Configure the visitor-facing CDN certificate separately; it does not replace the origin certificate.
- Configure expiration rules: initially cache only public static files. Check query parameters and cache keys against application behavior. Avoid shared caching for personal data, login and carts; verify the combined effect of origin directives and CDN rules.
- After adding the domain, point its DNS CNAME to the target assigned by the console. Save the original DNS record and TTL before cutover. A zone apex may not support a standard CNAME; confirm the DNS provider's available approach and avoid conflicts with existing records.
- Expand traffic only after DNS, certificates, static files and dynamic pages work. If there is a problem, restore the original DNS record and keep the origin operational. Cached DNS answers mean rollback is not immediate for every user.
Verify Responses and Purge
Run these commands from a terminal that can reach the test domain. Replace both domains and the path with the same public static file containing no sensitive data; the origin domain must be directly accessible. Two requests are observations only and may reach different nodes. HEAD and GET may also behave differently for caching.
dig +short CNAME cdn.example.com
curl -sS -D - -o /dev/null https://cdn.example.com/static/app.js
curl -sS -D - -o /dev/null https://cdn.example.com/static/app.js
curl -sS -D - -o /dev/null https://origin.example.com/static/app.js
dig should show the configured CNAME target; if it does not, check the DNS record and caches. All three GET requests should return the expected status. Compare headers such as Cache-Control and ETag and check the actual content separately. Age estimates response age, not time on a particular node; zero or absence alone does not prove a miss. Via does not prove a hit either. If a response exposes a documented cache-status header, interpret it alongside provider statistics; two requests to potentially different nodes are not a network-wide hit ratio.
After an origin update, select URL purge in the console's cache-purge section, submit the full URL and check task status. Use preload when a public file needs to be fetched ahead of demand. The purge documentation explains URL and directory purges and quotas. Submission does not mean every node is finished: after completion compare CDN and origin content with GET and, if needed, test from other networks. Purges increase origin traffic, so check origin capacity before bulk operations.
If the CDN returns an error while the origin works, check origin address, Host, protocol, port and firewall first, then console logs. For stale content, check the cache key, rule and purge task. A changed ETag or reset Age is not a sufficient standalone proof of purge success.
Billing Methods
Basic service billing offers traffic, daily peak bandwidth and monthly 95th-percentile bandwidth methods. Daily peak uses the largest five-minute sample of the day. Include HTTPS or HTTP/3 request charges and regional prices according to the billing overview and enabled features. Account separately for package coverage, origin egress and other cloud services; traffic packages do not offset daily peak billing.
Compare options using the same regions, traffic profile, request volume, cache behavior and contract term. Node count does not establish speed for a particular audience: test from users' actual regions and networks, and assess the bill and origin load.
Limitations
CDN cache is not an origin backup: nodes may not retain usable content after an origin failure or cache expiry. Plan separate origin copies and recovery for disaster resilience. This guide also excludes the separate configuration and pricing of the dynamic acceleration product.
FAQ
Is Baidu Cloud Acceleration the same contract as Baidu AI Cloud CDN?
The name alone cannot establish that. Existing customers should inspect the contracting entity, product name, console entry and invoice, then confirm migration or renewal conditions with the appropriate support team. These instructions apply to the service described in Baidu AI Cloud CDN documentation; they do not assume legacy packages share its nodes, features or prices.
Why can origin fetch fail after HTTPS is enabled?
Browser-to-CDN and CDN-to-origin are separate connections. A valid public certificate does not prove origin configuration is correct. For HTTPS origin fetches, check the origin listener and port, Host and SNI, certificate and firewall. After changes, request the test file through the CDN again and inspect origin logs.
Why does an old file appear after purge completes?
First check the actual URL and cache key, then check task status. A browser or another intermediary may also retain old content. Compare CDN and origin GET responses for a non-sensitive file and recheck from another network. Versioned static filenames reduce reliance on purges.
Related Providers
- Alibaba Cloud CDN: compare another CDN's regions, origin settings and billing.
- Tencent Cloud EdgeOne: consider when evaluating edge security alongside acceleration.
- Cloudflare: compare actual regional coverage and contract conditions for audiences outside mainland China.
Community & Resources
- CDN Acceleration: CDN setup and selection topics.
- Cache Strategy: plan cache keys and expiration.
- Website CDN Setup Guide: general domain onboarding.
Original source: 16IDC Original ↗