How to make static content on Apache be cached by browser and not checked for freshness with every request?

Expires module in Apache solves this a2enmod expires it needs to be loaded in server config, and set up in .htaccess (or in server config). With an Expires header, the resource is only requested the first time. Before the expiration date, subsequent requests are fulfilled from browser cache. After the specified time expires and the … Read more