An easy way to improve your Google PageSpeed Insights score.

Easy way to improve the Google Insights Speed Score

Speed, both on desktop and mobile, is crucial to please your visitors and the almighty Google Search engine. An easy way to improve your performance will be to leverage browser caching. That's the topic of today's snack tip.

You can check the performance of your website with the Google PageSpeed Tool.

Most of the time, Google will advise you to optimise your images, using compression tools. On CallMeFred, I'm using ShortPixel, which enabled me to reduce by 70% the weight of the images you see on the homepage. I could optimise them even further but I get currently a decent 84% score in the Google PageSpeed Tool Insights. That's pretty acceptable.

An easy trick to improve your performance is to leverage browser caching.

leverage browser caching Google PageSpeed Insights

If you're running a WordPress website, it's very simple. Simply paste the code I'm providing herein below at the top of your .htaccess file. You can edit the file either via FTP or via the tools section of Yoast SEO in your WP admin.

After inserting this piece of code, you'll leverage browser caching for most your assets, which will improve your PageSpeed Insights score by at least 15%.

## 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 text/html "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 1 month"
</IfModule>
## EXPIRES CACHING ##

 




Comments