使用CMS Bitrix。站点根目录.htaccess文件包含以下内容:
<ifModule mod_headers.c>
<FilesMatch "\.(flv|swf|ico|gif|jpg|jpeg|png|css|js|text|bmp|psd)$">
Header set Cache-Control "max-age=172000"
Header append Cache-Control "public, no-transform"
</FilesMatch>
</IfModule>
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 5 seconds"
ExpiresByType image/x-icon "access plus 172000 seconds"
ExpiresByType image/jpeg "access plus 172000 seconds"
ExpiresByType image/png "access plus 172000 seconds"
ExpiresByType image/gif "access plus 172000 seconds"
ExpiresByType application/x-shockwave-flash "access plus 172000 seconds"
ExpiresByType text/css "access plus 172000 seconds"
ExpiresByType text/javascript "access plus 172000 seconds"
ExpiresByType application/javascript "access plus 172000 seconds"
ExpiresByType application/x-javascript "access plus 172000 seconds"
</ifModule>
如您所见,对于缓存标头的使用,过期。所以,请检查https://developers.google.com/speed/pagespeed/insights/ - 说“使用浏览器的缓存”,并指出.jpg和.png文件未设置为术语缓存的事实!但上面的代码显示了该集!什么可能是错的?
这就是以下情况:https://developers.google.com/speed/pagespeed/insights/?hl=ru&url=https%3A%2F%2Fmuse.ooo%2F