Apache 2.2+ Module mod_expires

Add to httpd.conf

This module controls the setting of the Expires HTTP header and the max-age directive of the Cache-Control HTTP header in server responses. The expiration date can set to be relative to either the time the source file was last modified, or to the time of the client access.

ExpiresActive on

ExpiresByType text/html “now”
ExpiresByType text/css “access plus 1 month”
ExpiresByType text/javascript “access plus 1 month”
ExpiresByType application/javascript “access plus 1 month”

ExpiresByType image/jpg “access plus 1 year”
ExpiresByType image/png “access plus 1 year”
ExpiresByType image/gif “access plus 1 year”
ExpiresByType image/jpeg “access plus 1 year”
ExpiresByType image/x-icon “access plus 1 year”

ExpiresByType audio/x-wav “access plus 1 year”
ExpiresByType audio/mpeg “access plus 1 year”

ExpiresByType video/mpeg “access plus 1 year”
ExpiresByType video/mp4 “access plus 1 year”
ExpiresByType video/quicktime “access plus 1 year”
ExpiresByType video/x-ms-wmv “access plus 1 year”

ExpiresByType application/x-shockwave-flash “access 1 year”
ExpiresByType application/pdf “access plus 1 year”
ExpiresByType application/x-javascript “access plus 1 month”