Apache Cache Control using mod_expires with Expires By Type

Use Apache’s mod_expires to explicitly set the expiration of a file by it’s type. This will enable to browser to cache these static assets and greatly increase performance. <IfModule mod_expires.c> ExpiresActive on ExpiresDefault "now" ExpiresByType text/html "now" ExpiresByType text/xml "now" ExpiresByType text/css "access plus 8 hours" ExpiresByType text/plain "access plus 8 hours" ExpiresByType application/x-javascript "access [...]