How to Leverage Browser Cache
When you run a page speed test, you'll likely see a warning about enabling Browser Cache.
This tutorial will show you how to enable this feature without a plugin. This is done on your website But, there will be certain utilities (third-party) that are on not on your website (called from external servers) that can not be cached and must either be acceptable or removed.
Here is the code that I reference within the video:
## 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 ##
UPDATE:
For Yoast SEO Users - Go here:
https://my.wealthyaffiliate.com/training/leverage-...
I hope this helps!
Please LIKE and comment to keep me going!
Cheers,
pj
I've been struggling with Leverage Browser Caching for about a day. I knew you were going to do this video tutorial, so I put everything on hold until it was up.
You're using All-In-One SEO and of course I'm on Yoast SEO.
I don't see any HT Access File.
I have no idea where you pulled that Browser Cache window from (at 1:38)
It still sounds like we can only improve the Leverage Browser Caching by only a small amount, and a lot is going to depend on our host.
I'm not sure if the gains will be worth switching back to All-In-One SEO or not.
Phil