Leverage Browser caching is an important parameter to speed up your site/blog and that google and y-slow used to analyze the performance of your site/blog. If you will check your site/blog on Google PageSpeed, you will find out that recommended that you have to leverage browser caching to make your site more fast then it is.
What Is Browser Caching?
Why Leverage Browser Caching?
Setting an expiry date or maximum age in the HTTP headers for static resources (images, js, css, etc) instructs the browser to load previously downloaded resources from local disk rather than over the network. (source -Google)
Features Of Leverage Browser Caching:
- Minimize the number of HTTP requests.
- Reduce the load time of your site dramatically.
- Save your visitor’s load time.
- Save your visitor bandwidth and data if they visit your site more than once.
- Reduces the load on your web server and save bandwidth.
You Can Do Leverage Browser Caching On:
- images: jpg, gif, png
You Can Use Leverage Browser Caching Limits Using:
ExpiresByType image/jpg “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 text/html “access 1 month”
ExpiresByType application/pdf “access 1 month”
ExpiresByType application/x-shockwave-flash “access 1 month”
ExpiresByType image/x-icon “access 1 year”
ExpiresDefault “access 1 month”
## EXPIRES CACHING ##
Did you notice any improvements for your site? Did the above take care of all your files listed under “Leverage browser caching” and “Add Expires headers“? Let me know in the comments below.