nginx compression-at-edge (in front of a reverse proxy) compresses some content, not other ?

Guillaume Filion gfk at
Wed Apr 28 19:45:57 MSD 2010

Hi Ben,

Your Apache/Varnish server returns:
Content-Type: text/x-js
for javascript files while nginx is configured to compress only those types:
gzip_types text/plain text/css text/xml text/javascript

My guess is that you should configure apache or varnish to return
Content-Type: text/javascript

Hope this helps,
Guillaume Filion

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 259 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the nginx mailing list