How to Overcome Leverage Browser Caching on Blogger?

The problem that is often faced by bloggers is the speed of the site. This problem arises because of several things such as optimize images, minify javascript and leverage browser caching. Thus, in this article, I have decided to help you out with How to Overcome Leverage Browser Caching on Blogger?

How to Overcome Leverage Browser Caching on Blogger?

What is Leverage Browser Caching?

This problem is often encountered when we check the speed of a blog through the GTMetrix tool or Google PageSpeed ​​Insights. Because browser caching leverage is also a factor determining the blog load speed.


To put it simple, Leverage Browser Caching serves to set the expiration date or the maximum age of HTTP/HTTPS headers that are directly related to the source code such as CSS, JavaScript and Static Images. Thus, it instructs the browsers to load cache from previously downloaded files in the local storage.

How to Overcome Leverage Browser Caching on Blogger?

Follow the steps as under:

1. Open Blogger Dashboard, head over to Themes. Click on Edit HTML button and paste the following code below <head>

<include expiration='7d' path='*.css'/>
<include expiration='7d' path='*.js'/>
<include expiration='3d' path='*.gif'/>
<include expiration='3d' path='*.jpeg'/>
<include expiration='3d' path='*.jpg'/>
<include expiration='3d' path='*.png'/>

2. Click on Save Theme button. You're done.

However, if you're blogging on WordPress, navigate to the .htaccess file on WordPress public web hosting and add the code as under:

## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresDefault "access plus 2 days"
</IfModule>
## EXPIRES CACHING ##

Usually it takes a week or so for Google to crawl the change and act accordingly. Test your website again in Pagespeed Insights or GT Metrix, you'll definitely see some changes.

Eventually, at a good blog speed, you'll gain good traffic too. Hopefully you'll find such trick about How to Overcome Leverage Browser Caching on Blogger? useful for your blog. So your love in comments below!

0 Comments

Post a Comment

Read Comment Policy before commenting.