When I pass check my site Google Page Speed Tools, that means “it is recommended to use the browser cache” and more specifically: "If you specify a date in the HTTP headers or the validity of static resources, the browser will load the already previously obtained resources from local disk rather than from the Internet."
Attached is a list of media files, some fonts. What’s the matter? The cache is not working?
At the same time, tested website.grader and the results are excellent. Cache world level)))
Who to believe? Is anyone using Google Tools?
P.S. In the settings all that is connected with the cache enabled, timestamps, and HTTP headers, and so on.
Hi,
browser cache and grav cache are two different things.
See : https://varvy.com/pagespeed/leverage-browser-caching.html
I added
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType application/vnd.ms-fontobject "access plus 1 year"
ExpiresByType application/x-font-ttf "access plus 1 year"
ExpiresByType application/x-font-opentype "access plus 1 year"
ExpiresByType application/x-font-woff "access plus 1 year"
ExpiresByType image/svg+xml "access plus 1 year"
ExpiresDefault "access plus 2 days"
ExpiresByType text/html "access plus 2 days"
ExpiresByType image/gif "access plus 3 months"
ExpiresByType image/jpeg "access plus 3 months"
ExpiresByType image/jpg "access plus 3 months"
ExpiresByType image/png "access plus 3 months"
ExpiresByType image/x-png "access plus 3 months"
ExpiresByType text/css "access plus 8 days"
ExpiresByType text/javascript "access plus 7 days"
ExpiresByType application/x-javascript "access plus 7 days"
ExpiresByType application/javascript "access plus 7 days"
ExpiresByType image/x-icon "access plus 3 months"
</IfModule>
---
in my .htaccess file
Thank you. But I somehow automatically… But the change in reports is not yet noticed. Maybe the hosting?