Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CDN 支持 brotli 压缩算法 #617

Closed
faceair opened this issue Dec 3, 2023 · 4 comments
Closed

CDN 支持 brotli 压缩算法 #617

faceair opened this issue Dec 3, 2023 · 4 comments
Assignees

Comments

@faceair
Copy link

faceair commented Dec 3, 2023

客户端现在一般同时支持 brotli、gzip 压缩方式,但 brotli 压缩率会略高于 gzip,推荐在 CDN 的配置中开启优先使用 brotli 压缩的选项。

实测在请求 CDN 地址时 https://registry.npmmirror.com/amis/3.6.1/files/sdk/sdk.css 后端默认选择了 gzip。

image image
Copy link

github-actions bot commented Dec 3, 2023

我们已经看到你的反馈,如果是功能缺陷,可以提供一下重现该问题的方式;如果是新功能需求,我们会尽快加入讨论。同时我们非常期待你可以加入我们的贡献者行列,让项目可以长期可持续发展。

@fengmk2
Copy link
Member

fengmk2 commented Nov 9, 2024

得看看阿里云 cdn 是否支持配置优先 brotli

@fengmk2 fengmk2 self-assigned this Nov 9, 2024
@fengmk2
Copy link
Member

fengmk2 commented Nov 9, 2024

现在改不了,我们源站是经过了 nginx gzip 压缩再返回给 cdn,cdn 只会原样转发。

@fengmk2 fengmk2 closed this as completed Nov 9, 2024
@faceair
Copy link
Author

faceair commented Nov 9, 2024

源站 nginx 也可以配置支持 brotli 吧

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

No branches or pull requests

2 participants