I am trying to optimize my WordPress site - Type and music based on the reports I received from GTmetrix. One of the things that I am recommended to do is add headers and use browser caching. I may be mistaken, but I assume that it is one and the same?
In any case, I watched online tutorials such as How to add the distant future Headers expire on your WordPress site and how to use the WordPress Caching browser through .htaccess from Thomas Griffen Media, all this is similar to the copy and paste case (I know that settings are specific for each site, but depending on how regularly you update / edit certain content and files), but these settings are never registered at all when you re-test the site.
Here is the contents of my .htaccess file:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 month"
ExpiresByType image/jpeg "access 1 month"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 week"
ExpiresByType text/css "access 1 week"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 week"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
</IfModule>
Since then I have installed the Quick Cache plugin, but as far as I know, this really does not conflict, especially since the settings in my htaccess file are not logged in the first place.
Any help would be greatly appreciated since I did not find anything for myself.