cloudflare cf 怎么为application/x-bittorrent添加zstd压缩支持?创建compress规则
cloudflare cf 怎么为application/x-bittorrent添加zstd压缩支持?创建compress规则参考添加了后,发现没有对BT种子下载进行zstd
https://bbs.itzmx.com/thread-109614-1-1.html
解决
通过压缩规则启用zstd后,只有以下正则
"(http.response.content_type.media_type in {\"text/html\" \"text/richtext\" \"text/plain\" \"text/css\" \"text/x-script\" \"text/x-component\" \"text/x-java-source\" \"text/x-markdown\" \"application/javascript\" \"application/x-javascript\" \"text/javascript\" \"text/js\" \"image/x-icon\" \"image/vnd.microsoft.icon\" \"application/x-perl\" \"application/x-httpd-cgi\" \"text/xml\" \"application/xml\" \"application/rss+xml\" \"application/vnd.api+json\" \"application/x-protobuf\" \"application/json\" \"multipart/bag\" \"multipart/mixed\" \"application/xhtml+xml\" \"font/ttf\" \"font/otf\" \"font/x-woff\" \"image/svg+xml\" \"application/vnd.ms-fontobject\" \"application/ttf\" \"application/x-ttf\" \"application/otf\" \"application/x-otf\" \"application/truetype\" \"application/opentype\" \"application/x-opentype\" \"application/font-woff\" \"application/eot\" \"application/font\" \"application/font-sfnt\" \"application/wasm\" \"application/javascript-binast\" \"application/manifest+json\" \"application/ld+json\" \"application/graphql+json\" \"application/geo+json\"})",
自问自答
创建压缩规则,规则名compress2,选择媒体类型,包含以下各项
部署后即可对 application/x-bittorrent 进行zstd压缩
帖子补充
实测zstd依旧有存在页面异常的bug
页:
[1]