I’m trying to enable caching for images and the like on my web server, so I made this .htaccess file, but my web server says Internal Error 500.
Here’s the file, which looks fine to me…
<FilesMatch "\.(jpg|jpeg|png|gif|swf)$">
Header set Cache-Control "max-age=604800, public"
</FilesMatch>
Any ideas?
It works fine on my own server, so there are no errors in there…
Perhaps mod_headers is not enabled? Or maybe you used some strange encoding that Apache does not understand? What if you just copy-paste this into a new file and overwrite the existing one?