This gives a better and optimized experience to user. While loading 1 page to other the same files do not load again and again. So browser uses them without downloading from server again and again.
How to Leverage browser caching
To enable browser caching for Images, CSS and JS, add those lines to your website’s .htaccess file:
Note: This code is useful only for Apache servers for other type of servers please consult your hosting provider.
ABOUT LEVERAGE BROWSER CACHING
Leverage Browser Caching means storing static files of a website in visitor browser. And then retrieving them from browser quickly instead again from server. Actually it uses to speed up each page of a website.
HOW LEVERAGE BROWSER CACHING WORKS?
When you visit a web page, your browser downloads all content of the particular page as well as common static files like css and js files. And when you visit other page of same website, your browser downloads them again. But if you have enabled Leverage Browser Caching, then all statics files will serve from your browser instead server. Now when you will visit any page of the particular website, it will only download unique contains of the page and static files will serve from your browser. in this way, it speed up each page of a website.
How beneficial Leverage browser caching is
Primary benefit is speeding up website because static files will be served from your browser. It also saves bandwidth of website server and decrease load of server. Simply it decreases HTTP requests.
Page load times can be significantly improved by asking visitors to save and reuse the files included in your website.
- Reduces page load times for repeat visitors
- Particularly effective on websites where users regularly re-visit the same areas of the website
- Benefit-cost ratio: high
- Access needed
- it saves internet data of website visitor.
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?