惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

阮一峰的网络日志
阮一峰的网络日志
D
Darknet – Hacking Tools, Hacker News & Cyber Security
S
Schneier on Security
The Last Watchdog
The Last Watchdog
Cyberwarzone
Cyberwarzone
S
Securelist
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Cyber Attacks, Cyber Crime and Cyber Security
L
Lohrmann on Cybersecurity
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 司徒正美
The Cloudflare Blog
V
V2EX
博客园_首页
博客园 - 聂微东
Vercel News
Vercel News
人人都是产品经理
人人都是产品经理
G
GRAHAM CLULEY
T
Tenable Blog
Last Week in AI
Last Week in AI
Y
Y Combinator Blog
L
LINUX DO - 最新话题
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
SecWiki News
SecWiki News
博客园 - 三生石上(FineUI控件)
S
Secure Thoughts
N
News | PayPal Newsroom
T
The Blog of Author Tim Ferriss
The GitHub Blog
The GitHub Blog
T
Troy Hunt's Blog
博客园 - 【当耐特】
Forbes - Security
Forbes - Security
H
Hacker News: Front Page
A
About on SuperTechFans
B
Blog RSS Feed
Engineering at Meta
Engineering at Meta
MongoDB | Blog
MongoDB | Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
罗磊的独立博客
D
DataBreaches.Net
P
Privacy & Cybersecurity Law Blog
Schneier on Security
Schneier on Security
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Google DeepMind News
Google DeepMind News
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Jina AI
Jina AI
D
Docker
P
Proofpoint News Feed

路明笔记

停更的两个月 使用 AI 从任意博客系统迁移到 Typecho 归档:REDMI Watch 5 eSIM 固件修改计划 我不需要一块全智能手表 REDMI Watch 5 eSIM 新固件恢复快应用安装详细教程 彻底解决 REDMI Watch 5(包括eSIM版)快应用数量限制问题及其原理解读 新项目:随机转盘 人生“转折点” —— 我的2025 给洛阳八高电教委的一些话
路明笔记 2 月优化日志
RiseForever · 2026-02-25 · via 路明笔记

朋友们,凌晨好。这里是熬夜优化网站的 RiseForever。

昨天晚上 9 点左右,我在尝试解决 CDN 证书问题的时候,无意间看到了一个熟词——“TTFB”。

它的定义是:从浏览器发出HTTP请求,到收到服务器返回的第一个字节(响应头)之间所花费的时间。

简单来说,它是用户点击链接或刷新页面后,浏览器开始“感知”到服务器响应的第一时间

行业普遍认为的参考值(对于首次访问):

等级TTFB 时间评价
优秀< 200 ms极佳,用户几乎感觉不到延迟。
良好200 - 500 ms可以接受,大多数用户不会明显感到慢。
需要改进500 - 1000 ms明显较慢,可能影响用户体验和转化率。
> 1000 ms严重问题,用户很可能不耐烦离开。

于是乎,我就上网搜了个测网站 TTFB 的 Python 脚本,测试了一下我的网站。结果吓了我一大跳——我的网站 TTFB 达到了惊人的 1.1s!已经是行业内较“差”的水平了。这使我迅速请教 AI 降低网站 TTFB 的方法,按照 Ta 教的内容,调整了本站的不少参数。现在,如果你访问本站,可能会发现加载速度和页面切换速度有了质的飞跃。

具体调整如下:

  • 为 CDN 新增了全站缓存,时长 86400s(一天);
  • 屏蔽了 Astro 自带的图片压缩功能,否则会导致 CDN 缓存的页面引用错误的图片;
  • 在 CDN 处更改源站地址为 Vercel 的一些香港 IP(并非默认的回国优化 IP)。

当然,除了优化外,本站在 2026 年 2 月有以下变更:

  1. Banner 图变更;
  2. 头像变更;
  3. 主题色变更(竹青・天青蓝)。记得在颜色选择器里点击“恢复默认色”按钮!

还有,在优化完网站后,我写了一个批量检测网站 TTFB 的 Python 脚本,把本站的友链全都测了一遍。快来看看你的网站 TTFB 吧。

(注:博主位于河南地区。数据仅供参考。)

==============================================================
TTFB多网站并行测试报告
==============================================================
测试时间: 2026-02-20 02:40:23
测试模式: 并行
每个网站测试次数: 5 次
测试网站数量: 29 个
最大并发数: 5
==============================================================

详细结果:
--------------------------------------------------------------
排名   网站                                            最优       最差       平均       成功率      状态
--------------------------------------------------------------
1    https://leviqin.top/                          0.516s   0.626s   0.571s   100%     正常
2    https://pineseed.cn/                          0.477s   0.718s   0.575s   100%     正常
3    https://www.leehenry.top/                     0.499s   0.807s   0.645s   100%     正常
4    https://feng.pub/                             0.446s   0.814s   0.652s   100%     正常
5    https://dusays.com/                           0.496s   0.883s   0.703s   100%     正常
6    https://www.liuchengrui.cn/                   0.496s   1.027s   0.720s   100%     正常
7    https://blog.hxrch.top/                       0.589s   0.853s   0.735s   100%     正常
8    https://blog.kaiqi.wang/                      0.466s   1.109s   0.751s   100%     正常
9    https://note.moxiify.cn/                      0.573s   0.962s   0.755s   100%     正常
10   https://xiaochopin.github.io/                 0.659s   0.919s   0.777s   100%     正常
11   https://www.yuanzj.top/                       0.767s   1.044s   0.915s   100%     正常
12   https://blog.veitzn.top/                      0.742s   1.270s   0.921s   100%     正常
13   https://i.duckxu.com/                         0.715s   1.179s   0.940s   100%     正常
14   https://www.guirlan.de/                       0.727s   1.167s   0.966s   100%     正常
15   https://pinpe.top/                            0.847s   1.074s   0.988s   100%     正常
16   https://www.xingmail.cn/                      0.743s   1.559s   0.992s   100%     正常
17   https://blog.mckero.com/                      1.003s   1.134s   1.058s   100%     正常
18   https://www.liveout.cn/                       0.947s   1.246s   1.082s   100%     正常
19   https://blog.xuxiny.top/                      0.926s   1.294s   1.089s   100%     正常
20   https://luming.cool/                          0.983s   1.516s   1.211s   100%     正常
21   https://blog.gytxtx.top/                      1.132s   1.456s   1.251s   100%     正常
22   https://makotowu.cnstlapy.cn/                 0.970s   2.012s   1.253s   100%     正常
23   https://suus.me/                              1.199s   1.369s   1.273s   100%     正常
24   https://blognas.hwb0307.com/                  1.037s   2.238s   1.542s   100%     正常
25   https://www.haoyu233.com/                     0.636s   3.927s   1.621s   100%     正常
26   https://blog.bxaw.name/                       1.242s   1.970s   1.750s   100%     正常
27   https://b.fvli.top/                           1.616s   2.098s   1.842s   100%     正常
28   https://tc.chenyuxia.com/                     0.565s   3.771s   1.965s   100%     正常

==============================================================
综合统计:
==============================================================
平均TTFB最低的网站: https://leviqin.top/ (0.571s)
平均TTFB最高的网站: https://tc.chenyuxia.com/ (1.965s)
所有网站平均TTFB: 1.055s
平均TTFB中位数: 0.977s
平均成功率: 100.0%
最低成功率: 100.0%

测试失败的网站: 1 个
  - https://limitz.top/: 5/5 次失败
    错误: 状态码 404

==============================================================
测试配置:
==============================================================
parallel: True
test_count: 5
timeout: 10
max_workers: 5
total_elapsed: 48.42s
url_count: 29
==============================================================