If your website is loading slow, then it will frustrated to your site visitor, then you need to improve your website’s page loading time. In today’s post, i will share the simple and easy ways reduce page load time.
1) Reduces page loading times to repeat your visitors.
2) Benefit-cost ratio will be high.
Every time when you visit any website, your browser downloads all the web files which includes all the HTML, CSS, Javascript and images files to display the webpage.
Navigate to the root directory of your website and open .htaccess file, Now copy below code and paste at the end of file and saved. Below code will improve enable the caching in your website which will improve your website speed.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
## 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 ## |
If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.
Article Tags: Enable Leverage Browser Caching, Gtmetrix Enable Leverage Browser Caching, htaccess, Leverage Browser Caching