How to increase your website loading speed by enabling Leverage browser cache?

Started by Dipak Bhoi, December 30, 2014, 04:17:38 PM

Previous topic - Next topic

Dipak Bhoi

Hello Guys,

If you are facing slow website loading issue then this post will help you to sort out this issue. Perform a speed check on your website using online utility gtmetrix.com and if you see result like as Leverage browser caching bar in red and Page load time: 70.90s then you need to enable the Leverage browser caching for your account from .htaccess file.

How to enable Leverage browser caching from .htaccess file?

Open your .htaccess file and add below code as it is.

Quote## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType application/x-javascript "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 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 7 days"
</IfModule>
## EXPIRES CACHING ##


This code will enable the Leverage browser caching for your account and you should see better result in loading speed of website.

That's all, Enjoy !!
MilesWeb - 30-Day Money Back
cPanel Web Hosting - cPanel Hosting in India
Grab a Free SSL for your website.  WordPress Optimized Solution.