intesso/connect-livereload — pull request #38 by gadr (2014-05-05 17:29:07+00:00)
Title: Implements disableAcceptEncoding option to disable gzip encoding of response

Extract #34 into it's own branch (so you can accept the PR's separetely)

-----
Livereload is not gzip-aware, so gzipped websites are not properly parsed on the "write" function.

Implementing gzip is both
- costly (performance wise), given that it would need to uncompress and compress every gzipped response, and
- difficult, given that "write" is synchronous and node zlib methods are all async.

Therefore, a simpler solution for development purposes is to simply remove the "Accept-Encoding" header sent by the browser.