What is mod_expires caching ?
Mod_expires caching is a powerful tool that can be used to improve the performance of your website. By caching static files, mod_expires can reduce the number of requests that need to be made to the server, which can lead to significant performance improvements.
When a user visits your website, their browser will first check to see if it has a cached copy of the static content. If the browser has a cached copy of the content, it will display the cached copy instead of downloading the content from the server. This can save a lot of time and bandwidth, especially for users who are visiting your website for the first time.
To use mod_expires caching, you need to:
- Enable the mod_expires module in Apache. You can do this by adding the following line to your Apache configuration file:
open “httpd.conf” file and add below code
LoadModule expires_module modules/mod_expires.so
Next go to below path and open httpd-vhosts.conf file
Next restart the apache server
sudo /opt/lampp/lampp restart
Thanks for learning 👍👍