I have a standard Apache2 installation on Ubuntu.
I tried to get mod_deflate to work, which it does, but noticed that it was not gzipping my .js files. A closer inspection showed that apache was not sending Content-Type: for anything other than .php files . For them, it sends "text / html", which is strange since DefaultType is "text / plain".
I have no clue why this is ... mod_mime is on and I have not touched its configurations.
Here is an example of my server response to a .css file:
Date Wed, 11 Mar 2009 04:48:12 GMT Server Apache/2.2.9 (Ubuntu) Connection Keep-Alive Keep-Alive timeout=15, max=96 Etag "30478-4fb-464bec553a600" Vary Accept-Encoding
Franko
source share