In the above linked post it’s documented as being text/x-js. This worked for me at the time on that particular host. When I tried to configure this on a Debian host this morning it had no effect.
To find out what content-type was being served, I used the command line “lynx” web browser with the -head flag to display the headers like so (yes, that .local address is correct – I was testing this on my local development box which had the domain configured like that):
lynx -head -dump http://www.electrictoolbox.local/js/common.min.js
The output from this was:
Note the last line which shows the content type.
If you are having difficulty configuring mod_deflate and it doesn’t seem to be compressing the files, then check the content-type using lynx as shown above and use that content type.