I am trying to set image caching through .htaccess but I can't seem to get it to work. I'm totally clues when it comes to servers but I just moved to a dedicated server at Hostgator. The code below is what I'm adding to my .htaccess file for a WordPress website which doesn't work.
<FilesMatch ".(flv|gif|jpg|jpeg|png|ico|swf)$">
Header set Cache-Control "max-age=2592000"
</FilesMatch>
Any help would be appreciated.