How to Overcome Leverage Browser Caching in Blogger - KhalistaBlog -->
Skip to content Skip to sidebar Skip to footer

How to Overcome Leverage Browser Caching in Blogger

How to Overcome Leverage Browser Caching in Blogger - The problem that often arises faced by the blogger is the speed of the site. The problem arises because of some things like optimize images, minify javascript and leverage browser caching. But you do not need to be confused, because in this article I will discuss about how to Overcome Leverage Browser Caching in Blogger.

This problem is often encountered when we check blog speed through GTMetrix tool or Google PageSpeed Insights. Because leverage browser caching is also one of the factors determining the speed of loading the blog, the faster loading blog then the blog traffic will be higher.

Simply Leverage browser caching functions to set the expiration date or maximum age of HTTP / HTTPS headers that are directly related to source code like CSS, Javascript and static images. So instruct the browser to load the Source Code that has been downloaded previously from local storage.

How to Overcome Leverage Browser Caching in Blogger

How to Overcome Leverage Browser Caching in Blogger


First step, to overcome the leverage of browser caching is open Blogger dashboard then select Theme, Click Edit HTML button and add below code just 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'/>

Once added, Save theme.

For WordPress users can use this code. Access the .htaccess file on Public Html hosting the WordPress web and add the code below
## 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 ##

NOTE.!! It usually takes approximately one week after installation, then check the site again in GTMetrix or Google PageSpeed Insights.

That's one way to speed up loading your blog, by having a good blog speed it will be able to increase blog traffic. Similarly How to Overcome Leverage Browser Caching in Blogger, hopefully with a short enough article this can be useful and good luck.

3 comments for "How to Overcome Leverage Browser Caching in Blogger"

  1. This comment has been removed by the author.

    ReplyDelete
  2. THIS IS MY FIRST TIME I VISIT HERE. I FOUND SO MANY USEFUL STUFF IN YOUR SITE ESPECIALLY ITS DISCUSSION. FROM THE TONS OF COMMENTS ON YOUR ARTICLES, I GUESS I AM NOT THE ONLY ONE HAVING ALL THE ENJOYMENT HERE! KEEP UP THE REALLY GOOD WORK.

    Quran apk

    قرآن برو

    مسلم برو

    قرآن لايت

    تطبيق آيات للموبايل

    المصحف الذهبي

    ReplyDelete

Provide comments relevant to the posted articles and provide critiques and suggestions for the progress of the blog