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

Guillaume Filion gfk at logidac.com
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
application/x-javascript;

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

Hope this helps,
GFK's
-- 
Guillaume Filion
http://guillaume.filion.org/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 259 bytes
Desc: OpenPGP digital signature
URL: <http://nginx.org/pipermail/nginx/attachments/20100428/1255f82e/attachment.pgp>


More information about the nginx mailing list