class { '::apache::mod::expires':
expires_by_type => {
'image/gif' => 'access plus 12 hours',
'image/png' => 'access plus 12 hours',
'image/jpeg' => 'access plus 12 hours',
'image/svg+xml' => 'access plus 12 hours',
'image/x-icon' => 'access plus 2 weeks',
'application/javascript' => 'access plus 1 hour',
'text/css' => 'access plus 1 hour',
'image/vnd.microsoft.icon' => 'access plus 2 weeks',
}
}
Getting the MIME types figured out was a minor annoyance in comparison.