I always wanted to Increase the Speed of your Website because it Increases the Traffic. I also wanted to increase the Speed of my site. I used Google PageSpeed tool and GTMartix to check the speed of my site and it was 70/100 and 86% respectively.  The suggestion was “Leverage browser caching by add Expires headers” . After doing that my Speed drastically increased to 91/100 and 94% . 🙂

speed gtmatrix speed pagespeed

So what is Leverage browser caching? It reduce the number of HTTP request, which improves the performance speed of your Website. When someone visits your website, all your images, css files , JavaScript are fetched by the browser. This happens every time when same visitor comes back to your site.

The Expires header you tell the visitors browser that the files are not changing until a certain time. Doing this the browser doesn’t have to re-fetch the images, css, JavaScript every time the visitor comes back to your site.

So Lemme tell you the method using which you can change the Speed of your website speed and make it a Blazing speed.

You have to add expiry date to Following type of Files- images: jpg, gif, png, favicon/ico, javascript , css. And you can add these types to Timegap years, months, weeks ,days, hours, minutes, seconds. Here is what I have added. You can change the Time interval what you need-

<IfModule mod_expires.c>

# Enable expirations
ExpiresActive On

# Default directive
ExpiresDefault “access plus 1 month”

# My favicon
ExpiresByType image/x-icon “access plus 1 year”

# Images
ExpiresByType image/gif “access plus 1 month”
ExpiresByType image/png “access plus 1 month”
ExpiresByType image/jpg “access plus 1 month”
ExpiresByType image/jpeg “access plus 1 month”

ExpiresByType text/css “access 1 month”

# Javascript
ExpiresByType application/javascript “access plus 1 year”


Thats it. Adding this code can help you Increase your Website Speed. 🙂