wesaynih / infrastructure

© 2016 The Knights Who Say NIH — Do NOT fork this repository without permission.
http://frameless.io/
Other
0 stars 1 forks source link

Disable GZIP compression for some browsers #62

Open Robbert opened 8 years ago

Robbert commented 8 years ago

The DuneHD set-top box doesn't appear to be powerful enough to handle GZIP compression. We should check the user agent to disable GZIP for this browser.

It is not possible to prevent gzip and deflate using XMLHttpRequest, because Accept-Encoding is a forbidden header: https://fetch.spec.whatwg.org/#forbidden-header-name