I'm no apache / server expert so please forgive any errors and I hope those of you with more experience can point me in the right direction.
I seem to be running into some problems with file caching caused by incorrect expiry settings despite my htaccess and server being mostly configured correctly, or so I thought.
After running /usr/local/apache/bin/httpd -l
I can see all the apache modules needed except mod_mime.
As I'm running PHP5, mod_mime has been deprecated to a PECL module "FileInfo" which I have installed - however I'm not sure how to replace my mod_mime rules (htaccess) to use this module correctly.
It also seems that mod_expires settings are not being applied even though mod_expires is installed and htaccess rules are configured.
So, here are my questions;
1) How do I convert my setup which is relying on mod_mime and has htaccess configured for mod_mime to now use "FileInfo" - or will the mime associations happen automatically as files are processed ? Here is an extract of the mod_mime settings.
AddType text/css .css
AddType text/x-component .htc
AddType text/x-js .js4
2) mod_expires is installed however none of the expires settings are being applied to files. Here is an extract of the mod_expires settings.
ExpiresByType text/css A31536000
ExpiresByType text/x-component A31536000
ExpiresByType text/x-js A31536000
Do I need to load the modules (httpd.conf) like so to enable them at run time:
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
Any help in figuring out what I'm doing wrong (what's wrong with my server setup) would be appreciated.