gpt4 book ai didi

seo - 利用 WOFF 字体的浏览器缓存

转载 作者:塔克拉玛干 更新时间:2023-11-03 02:37:41 28 4
gpt4 key购买 nike

Google Page Speed inisght 仍然告诉我对某些 .woff 字体使用浏览器缓存:

/fontawesome-webfont.woff?v=4.6.1/rssocial-font.woff?13037212

在我的 .htaccesss 文件中我有:

 # Web Open Font Format (WOFF) 1.0
ExpiresByType application/font-woff "access plus 1 month"
ExpiresByType application/x-font-woff "access plus 1 month"
ExpiresByType font/woff "access plus 1 month"

但看起来他们被忽略了......

最佳答案

您的语法看起来正确,但实际上是作为“访问加 2 天”提供的。

这表明您的 .htaccess 被完全忽略或被覆盖(稍后在 .htaccess 中或被其他配置)。

我想说的是,当加载 200 种资源(其中 70 种来自广告域)时,“只”缓存 2 种字体(这 200 种资源中的)两天并不是什么大不了的事情性能拖累。

减少资源和域的数量以获得更大的影响。

关于seo - 利用 WOFF 字体的浏览器缓存,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37186926/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com