Wiki
Deployment Plan
Existing English translations were reused. 11 current source blocks remain in Simplified Chinese, without triggering paid translation.
1.Introduction to Pages, a static website hosting service
Pages一般常用的有Github Pages,Cloudflare Pages和腾讯云Edge One Pages.
一般来说,Github pages是带宽又低,在国内访问又很波动,所以一般不用Github pages.
Cloudflare Pages has high-speed servers worldwide (except mainland China 🇨🇳), so access worldwide (except mainland China 🇨🇳) is very fast, with basic latency within 1–5 ms. The drawback is that it is relatively unstable in mainland China 🇨🇳.
The servers of Tencent Cloud Edge One Pages are mainly located in China (mainland 🇨🇳, Hong Kong, Macau, and Taiwan 🇭🇰🇲🇴🇨🇳) and in some major foreign countries, but the drawback is that you may need to complete domain filing (ICP registration) in China; however, domestic domain filing requires purchasing servers and other items, so the cost is high.(Tencent Cloud Pages comes with a CDN built in, so there is no need to layer another CDN on top.)
It is said that Alibaba Cloud (Alibaba Cloud ESA Pages) is also working overtime to copy Cloudflare and Tencent Cloud EO, so as to counter Tencent Cloud EdgeOne Pages. I do not know when it will be released; I hope it will also have a free tier.
| Platform | Key Features | Cost | Advantages | Disadvantages |
|---|---|---|---|---|
| GitHub Pages | Hosted static websites | Free | Tight integration with GitHub repositories, convenient automated builds | Low bandwidth, extremely unstable access from mainland China |
| Cloudflare Pages | High-performance servers worldwide (excluding mainland China) | Free | Extremely fast global access, latency typically only 1–5 ms; supports custom domains and CI/CD integration | Unstable access speed from mainland China |
| Tencent Cloud EdgeOne Pages | Servers cover mainland China, Hong Kong, Macao, Taiwan, and major overseas nodes | Free tier available | Excellent access speed within China; supports integrated EO CDN acceleration; relatively generous free tier | Filing is required if targeting mainland users; the filing process is complex and may require purchasing domestic servers |
| Alibaba Cloud ESA Pages | Servers cover mainland China, Hong Kong, Macao, Taiwan, and major overseas nodes |
2.Introduction to Content Delivery Network (CDN)
A CDN (Content Delivery Network) deploys cache nodes around the world, allowing users to load content from the nearest server, thereby greatly improving access speed and reducing pressure on the origin server.
Common CDNs include Cloudflare CDN, Tencent Cloud EO CDN, Alibaba Cloud CDN, and so on.
Cloudflare CDN has high-speed servers worldwide (except mainland China 🇨🇳), so access is relatively fast globally (except mainland China 🇨🇳). The drawback is that it is quite unstable in mainland China.
Tencent Cloud Edge One CDN servers are mainly located in China (the mainland 🇨🇳, Hong Kong, Macao, and Taiwan 🇭🇰🇲🇴🇨🇳) and some major foreign countries. If you want to accelerate access for users in mainland China 🇨🇳, you need to complete ICP filing, which has a high cost. However, you can choose not to accelerate for mainland China 🇨🇳 users. In that case, because Tencent Cloud's CDN in Hong Kong 🇭🇰 is of high quality, access speeds within China are actually not bad. And most importantly, there is currently a free quota, which is completely sufficient for ordinary users.
Alibaba Cloud ESA CDN is positioned similarly to Tencent Cloud EO, but this is a product that was hastily imitated with overtime work to counter Tencent Cloud EO; it can only be said that 《for now》 it is far less user-friendly than Cloudflare and Tencent Cloud EO.
| Platform | Node Distribution | Cost | Advantages | Disadvantages |
|---|---|---|---|---|
| Cloudflare CDN | Free global high-speed nodes (excluding mainland China) | Free | Excellent performance, simple configuration, broad global coverage | Access speed from mainland China fluctuates considerably |
| Tencent Cloud EdgeOne CDN | Mainland China, Hong Kong, Macao, Taiwan, and major overseas nodes | Has a free tier | Balanced access speed domestically and internationally; high-quality Hong Kong nodes; provides a free quota | Enabling mainland China acceleration requires filing, and costs are relatively high |
| Alibaba Cloud ESA | Mainland China, Hong Kong, Macao, Taiwan, and major overseas nodes | Has a free tier | Balanced access speed domestically and internationally; high-quality Hong Kong nodes; provides a free quota | Enabling mainland China acceleration requires filing, and costs are relatively high. Moreover, the product is currently not as complete as Tencent Cloud EO. |
3.Deployment Plan
3.1.Free Plan
- 纯免费方案一【Cloudflare Pages + 腾讯云EO CDN(加速全球,但不加速中国大陆)】:****(普通人用这个方案完全够用了,强烈推荐)
In mainland China 🇨🇳, the average is 150ms; in Hong Kong, China 🇭🇰, the average is 2ms.
This is because Cloudflare has high-speed servers worldwide (except mainland China 🇨🇳), and Tencent Cloud CDN also has high-speed CDN in Hong Kong, China 🇭🇰, so access from mainland China is relatively fast and fully sufficient, mainly because it is completely free.

- 纯免费方案二【Cloudflare Pages + 阿里云 ESA CDN(加速全球,但不加速中国大陆)】:
In mainland China 🇨🇳, the average is 240ms; in Hong Kong, China 🇭🇰, the average is 2ms.
This is because Cloudflare has high-speed servers worldwide (except mainland China 🇨🇳), and Alibaba Cloud CDN also has high-speed CDN in Hong Kong, China 🇭🇰, but currently it seems not as good as Tencent's, so it is much worse than Tencent's.

- 纯免费方案三【腾讯云EO Pages + 腾讯云EO CDN(加速全球,但不加速中国大陆)】:
In mainland China 🇨🇳, the average is 230 ms; in Hong Kong, China 🇭🇰, the average is 2 ms.
The reason it is inferior to Option 1 is that Tencent Cloud only has servers in major countries, whereas Cloudflare has high-speed servers worldwide (except mainland China 🇨🇳), so it is not as fast as Cloudflare.

- 纯免费方案四【Cloudflare Pages + Cloudflare CDN(加速全球)】:
In Mainland China 🇨🇳, the average is 180 ms, but access is abnormal in some provinces (such as Jiangsu Province). In Hong Kong, China 🇭🇰, and Taiwan, China 🇨🇳, the average is 0–2 ms.
This is because Cloudflare's CDN acts up in mainland China 🇨🇳, so it's not very reliable.

- 纯免费方案五【Github Pages】:
In mainland China 🇨🇳, the average is 100 ms, while in Hong Kong, China 🇭🇰, the average is 51 ms.
The latency may not seem high, and it is not half-blocked like Cloudflare, but in reality the bandwidth is extremely low, and loading a single image is painfully slow. This is the least recommended option. (Even Hong Kong, China 🇭🇰, where any solution normally has 2 ms latency, has turned into 50+ ms—you can imagine how crappy it is.)

3.2.Paid Plan
- 付费方案一【腾讯云EO Pages + 腾讯云EO CDN(加速全球,含中国大陆)】:
In mainland China 🇨🇳 the average is 16 ms, and in Hong Kong, China 🇭🇰 the average is 2 ms.
You pay only for the domain name and ICP filing; the cost isn't that high, as Pages and CDN are both free.

- 付费方案二【阿里云ESA Pages + 阿里云ESA CDN(加速全球,含中国大陆)】:
In mainland China 🇨🇳 the average is 12 ms, in Hong Kong, China 🇭🇰 the average is 2 ms, and in Taiwan, China 🇨🇳 the average is 4 ms.
The payment is for the domain and filing, and the cost isn't that high; Pages and CDN are currently free.

- 付费方案三【Cloudflare Pages + 腾讯云EO CDN(加速全球,含中国大陆)】:
In mainland China 🇨🇳, the average is 10 ms; in Hong Kong, China 🇭🇰, the average is 2 ms; in Taiwan, China 🇨🇳, the average is 20 ms.
Because Cloudflare servers are located in regions such as Hong Kong, China 🇭🇰, Taiwan, China 🇨🇳, and Japan 🇯🇵, but Tencent Cloud CDN uses CDN nodes in mainland China 🇨🇳, Tencent's high-speed CDN first retrieves content from Cloudflare's high-speed servers, and then distributes the content to users in mainland China, which is still very fast.

- 付费方案四【Cloudflare Pages + 阿里云ESA CDN(加速全球,含中国大陆)】:

In mainland China 🇨🇳, the average is 10 ms; in Hong Kong, China 🇭🇰, the average is 2 ms; in Taiwan, China 🇨🇳, the average is 4 ms.
Because Cloudflare servers are located in regions such as Hong Kong, China 🇭🇰, Taiwan, China 🇨🇳, and Japan 🇯🇵, but Tencent Cloud CDN uses CDN nodes in mainland China 🇨🇳, Tencent's high-speed CDN first retrieves content from Cloudflare's high-speed servers, and then distributes the content to users in mainland China, which is still very fast.
3.3.Solution Presentation
- Tencent EO Pages + Tencent EO CDN

- Alibaba Cloud ESA Pages + Alibaba Cloud ESA CDN

- Cloudflare Pages + Tencent EO CDN

- Cloudflare Pages + Alibaba Cloud ESA CDN



Force browser to refresh cache
# Chrome/Edge 强制刷新组合键
Ctrl + Shift + R (Windows/Linux)
Cmd + Shift + R (Mac)
# Firefox 额外步骤
about:config → 搜索 "browser.cache.disk.enable" → 设为 false → 刷新
npm run dev