P
P
pikla2015-08-27 19:45:58
htaccess
pikla, 2015-08-27 19:45:58

Why doesn't Google PageSpeed ​​Insights see compression?

The following code is written in HTACCESS, but google shows that there is no compression, the same code on another site includes compression, what could be the matter?

<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/javascript text/css application/x-javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
<ifmodule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_item_include file \.js$
mod_gzip_item_include file \.css$ </ifmodule>
</IfModule>

<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access 7 days"
ExpiresByType application/javascript "access 7 days"
ExpiresByType text/javascript "access 7 days"
ExpiresByType text/css "access 7 days"
ExpiresByType text/html "access plus 7 day"
ExpiresByType text/x-javascript "access 7 days"
ExpiresByType image/gif "access 7 daysr"
ExpiresByType image/jpeg "access 7 days"
ExpiresByType image/png "access 7 days"
ExpiresByType image/jpg "access 7 days"
ExpiresByType image/x-icon "access 7 days"
ExpiresByType application/x-shockwave-flash "access 7 days"
</IfModule>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Andreev, 2015-08-27
@b0nn1e

Look carefully through what you are given static files.
I had one hoster return through NGINX, without "on-the-fly compression".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question