I installed the W3 Total Cache plugin but to fair, it was a bit much for a small blog so I resorted back to the trusted WP Super Cache. Fortunately my knowledge has improved albeit marginally but I thought of this to help speed up my site.
I check Google Page Speed every now and then and the last time I did I noticed that a few scripts were not being "measured" by the leverage browser caching bit. (Hope your loving my terminology)
I had a look online for a trick or at least a substantial method to improve on this and I came across various scripts for the .htaccess file pretty much all saying the same thing about expiration which was the issue I had. But then, I spotted an old .htaccess file in my directory when doing these checks so I had a look at it appears to be a much longer and far more in depth piece of script that would pick up those files that are not already being picked up by GPS.
So I took the script that was from the W3TC plugin which was left behind, stuck it into my new one and now I'm waiting for Google to crawl away and notice the coding to improve my Page Speed.
Ethically, I feel bad for doing this but 1. Is it deemed acceptable? 2. Will it work? and 3. Should I be happy to have figured a little smart answer out?
The piece online that many recommend is this:
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
</IfModule>
## EXPIRES CACHING ##
However, I'm wondering if this is better: