I have modified the setting in httpd.conf of Apache to be able to use mod_expires but when I load a page, now I have an error 500 (The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.).
In httpd.conf I really have : LoadModule expires_module modules/mod_expires.so without # before.
I use XAMPP on Windows Vista.
Is there something else that require to be activate?
The Apache server give webpages without problem when the .htaccess is empty. But I add the code following, I have the error 500.
<IfModule mod_expires.c> # Turn on Expires and set default to 0 ExpiresActive On ExpiresDefault A0 # Set up caching on media files for 1 year (forever?) <FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav)$"> ExpiresDefault A604800 #12 hours cache Header append Cache-Control "public" </FilesMatch> </IfModule>