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 !!