apache - 使用 GZIP 时,我需要为 Woff 和 Woff2 字体文件添加单独的 Mime 类型吗?
问题描述
如果我对我的网站进行 GZIP 压缩,当我添加涵盖字体文件格式的代码时,下面代码中的行是否会同时AddType x-font/woff .woff
涵盖字体文件,或者我是否需要为 woff2 添加另一行,我猜这将是woff
woff2
AddType x-font/woff2 .woff2
AddType x-font/otf .otf
AddType x-font/ttf .ttf
AddType x-font/eot .eot
AddType x-font/woff .woff
提前感谢您的任何答案
恩
解决方案
推荐阅读
- crystal-reports - 每当我拖动 Crystal Report Viewer 以显示表单时,它会下降而不从视图中显示
- arrays - 为什么每个值都没有初始化为 0?
- perl - 用于 DNA 序列反向互补的 Perl 代码
- asp.net-core - .Net Core 服务器端模型验证通过不显眼的 ajax 表单
- php - 如何使用foreach从html标签中获取动态值并将其保存到jquery变量以供momentObj
- java - 我可以将一些数组作为字段放在 java 类中并使用本机方法访问它吗?
- reactjs - 未处理的拒绝(TypeError):无法读取未定义的属性“signUp”
- django - Django电子邮件模板中的图像未加载到电子邮件中
- ios - SwiftUI:更改视图并删除父级
- r - 用于从 PDF 中提取 P 值的正则表达式