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

推荐订阅源

P
Privacy & Cybersecurity Law Blog
V
V2EX
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The Register - Security
The Register - Security
MongoDB | Blog
MongoDB | Blog
P
Privacy International News Feed
The Last Watchdog
The Last Watchdog
Security Archives - TechRepublic
Security Archives - TechRepublic
美团技术团队
Stack Overflow Blog
Stack Overflow Blog
博客园 - 司徒正美
博客园 - 三生石上(FineUI控件)
V
Visual Studio Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
K
Kaspersky official blog
S
Secure Thoughts
T
Tenable Blog
Security Latest
Security Latest
The Cloudflare Blog
S
Security @ Cisco Blogs
H
Heimdal Security Blog
aimingoo的专栏
aimingoo的专栏
TaoSecurity Blog
TaoSecurity Blog
Blog — PlanetScale
Blog — PlanetScale
Microsoft Security Blog
Microsoft Security Blog
Schneier on Security
Schneier on Security
Webroot Blog
Webroot Blog
G
Google Developers Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Scott Helme
Scott Helme
IT之家
IT之家
Latest news
Latest news
The Hacker News
The Hacker News
C
Check Point Blog
T
The Exploit Database - CXSecurity.com
H
Hackread – Cybersecurity News, Data Breaches, AI and More
腾讯CDC
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
N
News | PayPal Newsroom
Forbes - Security
Forbes - Security
P
Palo Alto Networks Blog
S
Security Affairs
S
Securelist
Google Online Security Blog
Google Online Security Blog
WordPress大学
WordPress大学
Last Week in AI
Last Week in AI
C
Cybersecurity and Infrastructure Security Agency CISA
A
About on SuperTechFans

Fgaoxing

MiniGFM:3KB的轻量Markdown渲染库 Go反射:性能瓶颈与零拷贝优化 至全体朋友 Goh:一款Go语言的预编译快速模板引擎。(Benchmark排名第一) 【预告】关于函数传参时栈的变化 【谈谈当下】青少年口中的垃圾话语 【LSP】微型滚动动画库 推一下 Vercel 加速节点 【显微镜下的世界】0x1 【Hexo】优化教程 【CDNN】CDNN再添一员 懒加载的妙用:缓存篇 【FastJump.js】简单的快速跳转技术 BiliBili崩了 【New Bing】New Bing免代理申请和使用 simplest-server Python实现文件查重 放开想,越离谱越好 2022 夏季应用推荐
网站优化小窍门
Fgaoxing · 2024-01-16 · via Fgaoxing

首先呢,我发表一下我自己的观点:
速度优化有很多方面,并不一定说非得上SW


¶服务器

¶虚拟机/虚拟空间

这里只说GFW外的,GFW内的话基本也用不上
首先就是CDN,尤其是中国以外,尽量套一个,有的人可能套了,但是还没开缓存,那一点意义没有,甚至更慢
所以一定要为静态内容(或者伪静态)配置合理的缓存

¶部署平台

对于一些部署平台,我这里只有Vercel的优化经验
其他的平台可以参照
首先你要清楚一点:部署平台,基本上都不是单台服务器
那这样就好办——测速
然后看哪个服务器究竟在哪,一个运营商,哪一个城市哪一条线路快
接下来使用DNS的分区域解析,挨个解析就可以了
比如我这里的Vercel效果:vercel.cdn.yt-blog.top(随便用,CNAME解析一些就行了)
(这个月为了优化网站,我已经测速消耗了200MB的流量,勉强达到国内付费CDN的程度,数据来源:炸了么
测速图 比较长,有点慢

¶网页

说完了服务器,接下来就是网页本身。首先就是尽量让网页体积更小
将字体JS CSS之类的各种文件都独立托管于网页本身
这样也可以带来更好的速度,尤其是使用免费的资源,还能节省流量