Sysadmin: How to make use of apache web server mod_expires to improve performance

apache_banner
Most of modern Linux distributions contain Apache 2.x web server with the set of standard modules. One of these modules is mod_expires that allows to configure content expiration in local browser cache or caching proxies. Proper configuration for it can significantly improve overall server performance and reduce bandwidth consumption.

I was adjusting mod_expires settings using YSlow extension site grade recommendation on various sites.
Here is what I am using right now

In case of problems you might want to remove “js” from FilesMatch expression.
Updated on July 10 2014:
– Modified ExpiresDefault to have baseline expiration relatively high
– Added flv and mp4 ExpiresByType
– Added “no-transform” to Cache-Control header to imporve compatibility with CDN

Share Button

Leave a Comment

NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">