![](https://cdn.pixabay.com/photo/2018/05/20/10/13/racing-3415413_960_720.jpg) 好久没有折腾[土木坛子](https://tumutanzi.com/)博客网站速度了。最近尝试再次优化提升网站的访问速度。 利用了CDN厂商Cloudflare的Page rules,创建了三条页面规则,将后台登录页面免除缓存外,其它页面全部都缓存在Cloudflare的全球CDN数据中心。 这样全球访客访问本网站的时候,除了第一次要从源主机上索取生成页面,其它都不再需要,直接从最近的CDN数据中心获取,这样既减轻了网站主机的资源消耗压力,又直接提升了访客的访问速度。 鉴于Google Anlytics统计数据越来越不好用(Cloudflare本身自带Web Analytics),再加上我也没有动机去使用它,索性把统计代码取消了,这样一来既减少了网页页面请求数量,也没有了cookies记录,因此访问过的网页会直接缓存在访客的浏览器中一段时间(设置为1天)。 去除了Google Anlytics统计功能后,访客在本网站上来回浏览的时候,短时间内去CDN上下载网页都不必了——CDN那边会返回304告诉浏览器页面没有改动,所以直接调用原缓存页面,进一步提升网站访问速度。 这样的网站速度终极优化方案,把本网站的加载速度基本控制在500毫秒以内,比秒开还要快。浪费别人时间就是浪费别人的生命。 这么多年后,再一次化繁为简、返朴归真,回归到博客网站写作的初心,其它的东西都不必要。 [欢迎点击网站体验这种瞬间打开的感觉](https://tumutanzi.com/)。
author | tumutanzi |
---|---|
permlink | 5nqxdy |
category | hive-105017 |
json_metadata | {"tags":["cn","cn-reader","blog","speed","website"],"image":["https://cdn.pixabay.com/photo/2018/05/20/10/13/racing-3415413_960_720.jpg"],"app":"hiveblog/0.1","format":"markdown","links":["https://tumutanzi.com/"]} |
created | 2022-11-18 11:58:03 |
last_update | 2022-11-18 12:00:36 |
depth | 0 |
children | 3 |
last_payout | 2022-11-25 11:58:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 4.280 HBD |
curator_payout_value | 4.268 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 725 |
author_reputation | 187,178,155,981,340 |
root_title | 网站速度终极优化方案 |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 118,428,285 |
net_rshares | 18,280,861,876,452 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
boatymcboatface | 0 | 145,855,018,850 | 8% | ||
kingscrown | 0 | 24,571,569,889 | 8% | ||
theshell | 0 | 39,062,349,883 | 8% | ||
ace108 | 0 | 599,125,478,413 | 13% | ||
rivalhw | 0 | 1,639,563,185,221 | 100% | ||
sweetsssj | 0 | 12,139,612,899,576 | 33% | ||
tumutanzi | 0 | 622,448,200 | 33% | ||
dapeng | 0 | 96,914,691,020 | 100% | ||
amryksr | 0 | 3,962,398,896 | 100% | ||
passion-fruit | 0 | 9,487,300,619 | 100% | ||
htliao | 0 | 3,048,558,858 | 20% | ||
shenchensucc | 0 | 733,301,016 | 19.8% | ||
oldman28 | 0 | 73,515,326,378 | 60% | ||
liangfengyouren | 0 | 3,438,687,371 | 50% | ||
mangoanddaddy | 0 | 3,277,098,193 | 80% | ||
cn-reader | 0 | 16,974,591,390 | 50% | ||
tipu | 0 | 2,967,811,215,242 | 10% | ||
yellowbird | 0 | 1,785,423,373 | 80% | ||
cnbuddy | 0 | 245,661,830,401 | 66% | ||
suhunter | 0 | 617,855,470 | 33% | ||
atongis | 0 | 19,502,840,537 | 5% | ||
el-dee-are-es | 0 | 24,599,422,337 | 10% | ||
andrewma | 0 | 9,192,306,802 | 33% | ||
longer | 0 | 811,563,827 | 2.5% | ||
coder-bts | 0 | 4,910,619,005 | 33% | ||
melaniewang | 0 | 6,228,435,181 | 33% | ||
changxiu | 0 | 3,318,200,336 | 33% | ||
tagalong | 0 | 714,048,897 | 100% | ||
mia-cc | 0 | 1,250,356,067 | 10% | ||
kryptogames | 0 | 35,851,826,200 | 10% | ||
koychev22 | 0 | 3,671,704,578 | 10% | ||
tina3721 | 0 | 3,194,278,337 | 33% | ||
andyhsia | 0 | 10,547,778,388 | 66% | ||
cryptogambit | 0 | 1,443,184,099 | 7.5% | ||
bcm | 0 | 852,650,929 | 7.5% | ||
dappstats | 0 | 4,071,970,781 | 15% | ||
cnbuddy-reward | 0 | 758,865,125 | 66% | ||
real3earch | 0 | 1,200,325,876 | 66% | ||
iliyan90 | 0 | 64,687,341,698 | 10% | ||
elkakoycheva | 0 | 1,445,933,569 | 10% | ||
ississ89 | 0 | 20,353,941,467 | 10% | ||
velinov86 | 0 | 4,958,004,671 | 5% | ||
hydrodino | 0 | 493,679,106 | 100% | ||
sneji79 | 0 | 678,058,859 | 10% | ||
roflie | 0 | 4,789,823,068 | 10% | ||
tiger85 | 0 | 1,113,213,153 | 10% | ||
philipmak | 0 | 1,363,248,900 | 50% | ||
selena14 | 0 | 808,693,108 | 10% | ||
alicewonderyoga | 0 | 2,192,660,518 | 10% | ||
tbabachev | 0 | 1,965,686,729 | 10% | ||
silviq93 | 0 | 506,202,981 | 10% | ||
mihaylov | 0 | 1,100,303,733 | 5% | ||
vaketo | 0 | 765,425,531 | 10% | ||
mobluesbetter | 0 | 728,608,651 | 10% | ||
pavlevskifamily | 0 | 1,213,073,775 | 10% | ||
mmanolev33 | 0 | 1,084,313,105 | 10% | ||
hive-bulgaria | 0 | 2,797,834,503 | 10% | ||
projectmamabg | 0 | 4,435,702,797 | 10% | ||
snedeva | 0 | 1,700,966,374 | 5% | ||
dontcare89 | 0 | 3,415,499,588 | 2% | ||
tammie.brown | 0 | 582,963,906 | 10% | ||
didivelikova | 0 | 982,084,684 | 10% | ||
diyan3973lenkov | 0 | 2,696,609,529 | 10% | ||
vasilev89 | 0 | 2,170,714,878 | 10% | ||
iliev26 | 0 | 2,192,744,466 | 10% | ||
benbow2017 | 0 | 607,420,613 | 5% | ||
xtipu | 0 | -75,508,319 | -10% | ||
mestanophoto | 0 | 1,301,217,833 | 10% | ||
lili255 | 0 | 43,807,417 | 45% |
@tipu curate
author | annepink |
---|---|
permlink | re-tumutanzi-20221118t20189952z |
category | hive-105017 |
json_metadata | {"tags":["cn","cn-reader","blog","speed","website"],"app":"ecency/3.0.28-vision","format":"markdown+html"} |
created | 2022-11-18 12:18:12 |
last_update | 2022-11-18 12:18:12 |
depth | 1 |
children | 1 |
last_payout | 2022-11-25 12:18:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 12 |
author_reputation | 789,939,339,020,088 |
root_title | 网站速度终极优化方案 |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 118,428,665 |
net_rshares | 0 |
<a href="https://tipu.online/hive_curator?annepink" target="_blank">Upvoted 👌</a> (Mana: 28/38) <a href="https://peakd.com/hive/@reward.app/reward-app-quick-guide-updated" target="_blank">Liquid rewards</a>.
author | tipu |
---|---|
permlink | re-re-tumutanzi-20221118t20189952z-20221118t121818z |
category | hive-105017 |
json_metadata | "{"app": "beem/0.24.26"}" |
created | 2022-11-18 12:18:18 |
last_update | 2022-11-18 12:18:18 |
depth | 2 |
children | 0 |
last_payout | 2022-11-25 12:18:18 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 216 |
author_reputation | 55,206,819,222,831 |
root_title | 网站速度终极优化方案 |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 118,428,670 |
net_rshares | 0 |
果然瞬间打开。。。👍
author | rivalhw |
---|---|
permlink | rlku6c |
category | hive-105017 |
json_metadata | {"app":"hiveblog/0.1"} |
created | 2022-11-19 04:05:45 |
last_update | 2022-11-19 04:05:45 |
depth | 1 |
children | 0 |
last_payout | 2022-11-26 04:05:45 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 10 |
author_reputation | 1,370,796,606,683,665 |
root_title | 网站速度终极优化方案 |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 118,447,285 |
net_rshares | 0 |