Skip to content

feat: 新增设置静态资源使用 cdn 支持#56

Open
renxia wants to merge 3 commits intofriend-nicen:masterfrom
renxia:support-gh-cdn
Open

feat: 新增设置静态资源使用 cdn 支持#56
renxia wants to merge 3 commits intofriend-nicen:masterfrom
renxia:support-gh-cdn

Conversation

@renxia
Copy link
Copy Markdown

@renxia renxia commented Aug 14, 2025

如题,基于 jsdelivr.net 的 gh 加速服务,可以支持对静态资源的加速缓存访问,从而可以一定程度上减少对服务器的压力。

示例:

https://github.com/friend-nicen/theme-document/blob/1.2.108/assets/theme/antd.min.js

文件可以通过如下形式访问:

https://fastly.jsdelivr.net/gh/friend-nicen/theme-document@1.2.108/assets/theme/antd.min.js

只需要设置 cdn 前缀为 https://fastly.jsdelivr.net/gh/friend-nicen/theme-documenthttps://fastly.jsdelivr.net/gh/friend-nicen/theme-document@1.2.108/ 即可。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant