How to Add Expires Browser Cache Control Header Leverage Browser Caching helps to decrease Blog page load time. When you open or load any Blog or webpage from your local computer on any br...
2017-12-24T16:01:28Z

How to Add Expires Browser Cache Control Header

Leverage Browser Caching helps to decrease Blog page load time. When you open or load any Blog or webpage from your local computer on any browser then that Blog or websites automatically sends request to the server, and it takes some time. And when you add Expires Browser Cache code in your Blogger template code then any body open or load your blog, Expires Browser Cache code save the server response file is user Browser Cache. I means no more request to your server and no more extra time to load your Blog page.

Leverage Browser Caching

Every blogs that includes many multimedia files such as images (jpg, gif, png and more), java script (.js), flash (.flv), stylesheets (.css) and more. When the blog's page loads on a computer these files also download as cache file to the local system via browser. It will be automatically re-fetch while you accessing the same page again. If the file is already stored with expire date, the file loaded via your local. Server request will not sent from blogger until it expires.

How To Add Expires Browser Cache Code in Blogger


1. Sign in to your Blogger Dashboard > Template > Edit HTML

2. Click anywhere in the code and press CTRL + F to open the search box then find the <head> tag.

3. Just after <head> tag paste the code given below:
<!-- Start leverage caching by HowlMeFlash -->
<include expiration='7d' path='**.css'/>
<include expiration='7d' path='**.js'/>
<include expiration='15d' path='**.html'/>
<include expiration='3d' path='**.gif'/>
<include expiration='3d' path='**.jpeg'/>
<include expiration='3d' path='**.jpg'/>
<include expiration='3d' path='**.png'/>
<!-- End leverage -->
4. Save your Template and you are Done!

How To Add Expires Browser Cache Code in WordPress

<!-- Start leverage caching by HowlMeFlash -->
<include expiration='7d' path='/assets/**.css'/>
<include expiration='7d' path='/assets/**.js'/>
<include expiration='15d' path='/assets/**.html'/>
<include expiration='3d' path='/assets/**.gif'/>
<include expiration='3d' path='/assets/**.jpeg'/>
<include expiration='3d' path='/assets/**.jpg'/>
<include expiration='3d' path='/assets/**.png'/>
<!-- End leverage -->

Note: Here "7d" shows the expiry date as 7 for the file. You can modify it whatever you want.

Don't set long expires date for blogger blog's file in leverage browser caching header. Since if you set long expire date then it will take some time for update the changes from your blog.
So this was our guide on How to Add Expires Browser Cache Control Header in Blogger Blog, I hope the methods given above helped you.

Keywords:- Add Expires Cache Control Header in Blogger Blog, enable leverage browser caching in blogger blog, Add Leverage Browser Cache to Your BlogSpot Blog, leverage browser caching of your website or blog.
Share it:

Blogger

Blogging

How To

Troubleshooting

Tutorial

WordPress

Post A Comment:

0 comments: