Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Definitely think about it before just doing it though...

Disabling compression can break some apps. Especially when they rely on huge compression ratios for text (5-10 times ratio is common for with much json for example). So that is not an app agnostic work around. For example, a 100k of json request, can turn into a 1MB json request. The more data required to send, the more chance of error - especially on 3g/2g networks.

For many high end projects, just disabling compression without regard to testing or having an idea of what the application is doing would get you fired or taken to court.

Not only would this break apps, but it would also lose business in that there is evidence from Amazon and others that every 100ms extra latency can cost 1% in sales.

From SPDY whitepaper: "45 - 1142 ms in page load time simply due to header compression". Remember that headers use the upload part of the link... which means too many headers and you can saturate the upload, therefore making the whole internet connection stall for everyone using it. Common upload limits are only 5-10K/second, so excessive headers combined with many requests can easily DOS many internet connections.

I spend a lot of time optimising websites for these reasons, and disabling compression could add 20 seconds of load time for a good percentage of users.

So, for many apps, turning off compression is no solution at all. You might as well just disconnect your app from the internet - that will also give you a secure and broken app.

A proper risk, and impact analysis should be done first. Too often quick hot fixes to security issues just break things or even make things less secure.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: