【问题标题】:gzip compression not working in joomla 2.5gzip 压缩在 joomla 2.5 中不起作用
【发布时间】:2015-11-10 23:32:41
【问题描述】:

我对自己的网站感到厌烦。

当我使用this site 检查压缩时,这表示我你很幸运!它已启用 GZIP。使用 GZIP 压缩此页面节省了 78.6%。

但是当我检查 google page speed 时,它说我要修复启用 css 和 js 文件中的压缩。

我在 .htaccess 文件中有这个压缩代码:

<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript
</ifmodule>

显然,我在 joomla 2.5 中启用了后端压缩

除了 gzip 压缩之外,谷歌页面速度测试还有其他含义吗?

【问题讨论】:

    标签: .htaccess joomla joomla2.5 google-pagespeed


    【解决方案1】:

    Google 很可能要求您压缩外部 CSS 和 JavaScript(您不能这样做)。检查 Google 抱怨的那些文件,我几乎可以肯定您会注意到它们不属于您的网站。

    【讨论】:

    • css 和 javascripts 被缩小。但仍然说要压缩。这是什么意思?这些文件属于我的网站(不是外部资源)。
    猜你喜欢
    • 2022-01-20
    • 1970-01-01
    • 1970-01-01
    • 2021-05-19
    • 1970-01-01
    • 2017-03-20
    • 2018-04-19
    • 2015-10-10
    • 1970-01-01
    相关资源
    最近更新 更多