by

[Solved] : Leverage browser caching in blogger & wordpress

[Solved] : Leverage browser caching in blogger & wordpress

 

[Solved] : Leverage browser caching in blogger & wordpress :- 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. Well on this occasion Arlina Design will share [Solved] : Leverage browser caching in blogger & wordpress ?

 

[Solved] : Leverage browser caching in blogger & wordpress

 

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. Examples of browser caching leverage like the image below when I check the site https://therapidpost.com in Google PageSpeed Insights

 

How to Overcome Leverage Browser Caching in Blogger

 

First step,

to overcome leverage 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 ##

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.

Comment

1 comment

Comments are closed.

News Feed