Answer the question
In order to leave comments, you need to log in
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
Answer the question
In order to leave comments, you need to log in
maybe the problem is in the hosting where the necessary apache modules are not installed
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question