F
F
Faiq Alizade2018-08-08 20:09:37
Google
Faiq Alizade, 2018-08-08 20:09:37

Why does google page speed complain about caching?

hello i have htaccess code

<IfModule mod_expires.c>  
 
    <FilesMatch ".(jpg|jpeg|gif|png|ico|css|js|svg)$">
        ExpiresActive on
        ExpiresDefault "access plus 1 month"
    </FilesMatch> 
 
    ExpiresDefault "access plus 1 month"
    ExpiresByType application/javascript "access plus 1 month"
    ExpiresByType text/javascript "access plus 1 month"
    ExpiresByType text/css "access plus 1 month"
    ExpiresByType text/html "access plus 1 month"
    ExpiresByType text/x-javascript "access plus 1 month"
    ExpiresByType image/gif "access plus 1 month"
    ExpiresByType image/jpeg "access plus 1 month"
    ExpiresByType image/png "access plus 1 month"
    ExpiresByType image/svg "access plus 1 month"
    ExpiresByType image/jpg "access plus 1 month"
    ExpiresByType image/x-icon "access plus 1 month"
    ExpiresByType application/x-shockwave-flash "access plus 1 month"
    ExpiresByType image/gif A2592000
    ExpiresByType image/jpeg A2592000
    ExpiresByType image/jpg A2592000
    ExpiresByType image/png A2592000
    ExpiresByType image/svg A2592000
     
    BrowserMatch "MSIE" brokenvary=1
    BrowserMatch "Mozilla/4.[0-9]{2}" brokenvary=1
    BrowserMatch "Opera" !brokenvary
     
    SetEnvIf brokenvary 1 force-no-vary
     
</IfModule>
<Files ~ "^\.cache">
  Order Allow,Deny
  Allow from All
</Files>
<Files ~ "^\..*">
  Order Allow,Deny
  Deny from All
</Files>
AddDefaultCharset Off

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d [OR]
RewriteCond %{REQUEST_URI} ^/$
RewriteCond %{REQUEST_URI} !^/cms
RewriteRule  ^.*$ cms/fo.php
RewriteCond %{REQUEST_URI} ^/plugins/(.+)\.php$
RewriteRule  ^.*$ cms/include/plugin_call.php

DirectoryIndex index.html index.php

php_flag always_populate_raw_post_data on
php_flag suhosin.cookie.encrypt off

but still google swears. Why?
5b6b23ce96f34273435918.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Denis, 2018-08-08
@sidni

maybe the problem is in the hosting where the necessary apache modules are not installed

A
Alex-1917, 2018-08-08
@alex-1917

What about your htaccess and real caching?)))
Most likely, the directive does not work, swarm the server.
When the directive starts to work, read the following text:
For google page speed, it is optimal to set 30 days, no less. Less - again will swear.

O
Otrivin, 2018-08-08
@Otrivin

What is a host?
It is noticed that such a problem was on adminvps. The problem is fixed by enabling caching in the isp-panel, in the settings of the www-domain

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question