Leverage Browser Cache for your Joomla website is very important. It is important because the issue is about your website performance and user satisfaction

Website performance is an important issue for any website for 2 main reasons:

  1. User satisfaction for desktop users and mobile users as well 
  2. Better search rankings

Google has a great tool to check the website speed. 

How to Leverage Browser Cache for a Joomla Website?

Leveragin browser cache means that you can specify how long browsers should keep images, CSS and JS stored locally.

Of course, if you change any of those, the server will tell the visitor's browser to clear that cache. To enable the browser cache, you need to add the lines below to your .htaccess file

## EXPIRES CACHING ##

ExpiresActive On
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 application/pdf "access 1 month"
ExpiresByType application/javascript "access 1 month"
ExpiresByType application/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"

## EXPIRES CACHING ##