简体   繁体   中英

gzip compression not working in joomla 2.5

I'm totally sick with my site.

When I check compression with this site , this says me You're blessed! It's GZIP Enabled. 78.6% Was saved by compressing this page with GZIP.

But when I check with google page speed it says me to fix enable compression in the css and js files.

I have this code for compression in .htaccess file:

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

And obviously, I have enabled compression from backend in joomla 2.5

Is google page speed test says something else than gzip compression?

Most likely Google is asking you to compress external CSS and JavaScript (which you can't do). Check those files that Google is complaining about and I'm almost positive that you will notice that they do not belong to your website.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM