I've been reading round on the net and some people seem to suggest that putting SetOutputFilter DEFLATE
in a .htaccess file in the js subdirectory will force Apache to automatically compress the javascript files.
I've just checked my server and I've got the following set in my main httpd.conf file:
SetOutputFilter DEFLATE
DeflateFilterNote ratio
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|php)$ \
no-gzip dont-vary
SetEnvIfNoCase Request_URI \
\.(?:exe|t?gz|zip|bz2|sit|rar)$ \
no-gzip dont-vary
SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary
I was wondering just how much difference it will make on the large javascript files - I imagine they will compress quite well