Azure CDN - 添加内容类型时字符无效
Azure CDN - Invalid characters when add content-types
来自文档:
The text field can contain a comma-separated list of content-types that should be enabled for compression via http Accept-Encoding/Content-Encoding.
在 Troubleshoot 页面上 - 甚至还有添加了内容类型的屏幕截图。
但是当我尝试添加新类型时(image/jpeg
、application/javascript
)- 我遇到了一个错误:
"Invalid characters. Characters allowed are alphanumeric, -, +, . and
/."
我哪里做错了?
删除每个逗号后的 space。
text/plain,text/html,text/css,application/x-javascript,text/javascript,text/xml,application/vnd.ms-fontobject,application/javascript,application/json,application/x-font-opentype,application/x-font-truetype,application/x-font-ttf,application/xml,font/eot,font/opentype,font/otf,image/svg+xml
如果你需要所有这些,请记住在我知道 Azure 的任何地方都不能有空格
来自文档:
The text field can contain a comma-separated list of content-types that should be enabled for compression via http Accept-Encoding/Content-Encoding.
在 Troubleshoot 页面上 - 甚至还有添加了内容类型的屏幕截图。
但是当我尝试添加新类型时(image/jpeg
、application/javascript
)- 我遇到了一个错误:
"Invalid characters. Characters allowed are alphanumeric, -, +, . and /."
我哪里做错了?
删除每个逗号后的 space。
text/plain,text/html,text/css,application/x-javascript,text/javascript,text/xml,application/vnd.ms-fontobject,application/javascript,application/json,application/x-font-opentype,application/x-font-truetype,application/x-font-ttf,application/xml,font/eot,font/opentype,font/otf,image/svg+xml
如果你需要所有这些,请记住在我知道 Azure 的任何地方都不能有空格