senchalabs/connect — pull request #659 by chakrit (2012-09-23 13:06:23+00:00)
Title: Add double-gzip checks for compress() middleware.

This makes it possible to use the `compress()` middleware with other
middlewares such as `connect-file-cache` which does its own gzip-ing.

Otherwise there is no simple way as of now to detect wether
or not this middleware is used and thus make using/writing/fixing other
middlewares which uses gzip harder/more problematic.

Relying on the module user to get this correct is bad as it is the equivalent
of asking him/her to check all the modules he/she is using for gzip conflict
by try re-ordering several permutations of `app.use` calls in his/her `app.js`