Author PjGermain
2015
5
Premium
Rank 1847

Leverage Browser Cache Fix with Yoast SEO

When testing page speed, you're likely to see a warning about implementing "Leverage Browser Cache". This has to do with Desktop machines and the various Internet browser caching certain things when they return to your website (after the first time) so they don't have to reload Javascript stuff and other things.

This is the fix for those using Yoast SEO. My original video tutorial instructed how to make this change with All-in-One SEO. The theory, of course, is identical. The difference is how you access the .HTAccess configuration file.

Here's the original tutorial for AIO users:

https://my.wealthyaffiliate.com/training/leverage-...

And, here is the code I reference within the tutorial:


## 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 ##


I hope this helps.

Please let me know how the video resolution appears on your screen. I'm still tweaking my new video recording software.

Thanks very much!

Cheers,

pj

Join the Discussion
Write something…
Recent messages
bigeckl57 Premium
Great post
John
Reply
PjGermain Premium
Much appreciated John!
Reply
DarleneB Premium Plus
Thank you so much for taking the time to do another tutorial using Yoast. It worked great.
Reply
PjGermain Premium
Awesome! Thank YOU Darlene!
Reply
RayAleksandr Premium Plus
Thanks PJ, I was wondering about that (page loading and Yoast/AIO) for a long time. I just followed your instruction exactly. This is so great, thank you so much! Again!
Reply
PjGermain Premium
Outstanding! Thanks Ray!
Reply
Brandy-W Premium
Thanks, PJ!
Reply
PjGermain Premium
Much appreciated Brandy!
Reply
stevecox Premium
PJ - You are like having Wikipedia implanted! Thanks my friend!

Steve
Reply
GeoffGS Premium
Lol. He's been at it a while. A wealth of information comes from PJ
Reply
PjGermain Premium
LOL! Thanks Geoff!
Reply
PjGermain Premium
Thanks Steve!!!
Reply
GeoffGS Premium
It's funny, I've gained 15 friends since I wrote that. Hmmmmm..... :)
Say PJ is great -> gain friends
Reply
Top