3

通过 github 搭建的博客访问速度慢,有优化方法吗?

 1 year ago
source link: https://www.v2ex.com/t/865819
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

V2EX  ›  程序员

通过 github 搭建的博客访问速度慢,有优化方法吗?

  Tesla9527 · 13 小时 31 分钟前 · 1962 次点击
17 条回复    2022-07-13 19:56:52 +08:00
snoopyhai

snoopyhai      13 小时 25 分钟前   ❤️ 1

github? 还是 github pages. 如果是 pages, 可以尝试切换到 vercel
BarryPan

BarryPan      13 小时 24 分钟前 via iPhone

可以套个 CF (
Tesla9527

Tesla9527      13 小时 20 分钟前

@snoopyhai 是 pages
MLeo

MLeo      13 小时 18 分钟前 via iPad

将静态文件同步到云存储,通过 cdn 加速,可以用又拍云,可以申请免费的流量
ersic

ersic      13 小时 10 分钟前   ❤️ 3

有没有一种可能,其实没啥人看👀
能看的人,估计也都有梯子,没啥影响
Tesla9527

Tesla9527      13 小时 6 分钟前

@ersic 是的。一般是自己记录些东西,偶尔回去翻一翻。有时候忘记开梯子了比较慢,就想着能不能优化下。
Tesla9527

Tesla9527      13 小时 6 分钟前

@snoopyhai 赞,用了 vercel 后快了很多。
lisongeee

lisongeee      12 小时 27 分钟前

可以利用域名双线解析,大陆解析到香港阿里云函数计算,然后让 index.html 走代理,其他资源走 302 cdn

https://github.com/lisonge/aliyun-pages-proxy.git
keppelfei

keppelfei      9 小时 3 分钟前

我之前就是用 github+netlify 部署,速度还行。
前两天良心云说我的域名解析没到指定的服务器,要我搞一下,不然备案的事情就麻烦,不得已又迁回良心云上。
vzchn

vzchn      8 小时 5 分钟前

@keppelfei 用什么程序搭建的。
hxysnail

hxysnail      7 小时 54 分钟前

我的博客是直接上传到阿里云 OSS ,然后用 CDN 加速,速度还行,可以点点看:

https://fasionchan.com/computer/

每个月需要交点流量费,我这个小破站目前还没啥人气,每个月也就一两块钱 CDN 流量费,能接受
Y29tL2gwd2Fy

Y29tL2gwd2Fy      7 小时 38 分钟前 via Android

移民解决一切问题
keppelfei

keppelfei      7 小时 36 分钟前

@vzchn Jekyll
github action 自动打包,迁到良心云就直接 nginx 静态代理了
aladdinding

aladdinding      7 小时 18 分钟前

@keppelfei 同 action 推到良心云,每次发文 30s 搞定
dunkelheit

dunkelheit      7 小时 7 分钟前

CF + VPS
LGA1150

LGA1150      2 小时 57 分钟前

A 解析到 184.27.204.30 ,不过没有 HTTPS

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK