Author PjGermain
2015
5
Premium
Rank 1841

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

Join the Discussion
Write something…
Recent messages
LLiu Premium
Thanks Pj, this was very helpful!
Really do appreciate your time putting this together...
Linda :)
Reply
PjGermain Premium
Thanks so much Linda!
Reply
BrooklynPhil Premium
Pj, thanks for all of your work. I do appreciate it.
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
Reply
PjGermain Premium
Ah, very good point Phil. Let me take a look at one of my websites that's running Yoast and see what I can do.
Reply
BrooklynPhil Premium
Pj, Thanks.
Maybe you can see if anyone else is having a problem with the focus of the video.
Reply
mergie1 Premium Plus
Thanks for all your work in putting this together.
Reply
PjGermain Premium
Much appreciated Michel!
Reply
Martstervt Premium
More great info Peej, it is appreciated:-)
Reply
PjGermain Premium
Thanks again Marty!
Reply
DanOIS Premium
Great stuff. Any idea how to fix the 'eliminate render-blocking JavaScript and CSS in above-the-fold content' error?

I can't follow the instructions suggested by Google because its too technical for me to understand.
Reply
PjGermain Premium
Working on that one. :-)
Reply
RoopeshG Premium Plus
Thanks for this Peej.
Yeah I too got that "'eliminate render-blocking JavaScript and CSS in above-the-fold content' error.

Looking forward to checking out your training on that one.
Thanks
Reply
Top