simple BREACH workaround for gzip

entropie nginx-forum at
Tue Apr 15 11:51:27 UTC 2014

has anyone considered this simple workaround for BREACH and
gzip-compression, i.e. randomly interspersed flush()-es during compression?
It would be compatible with all clients, and should be fairly easy to
implement in nginx (for nginx hackers).
Of course, it doesn't prevent BREACH attacks, but it makes them much

PS: yes, I'm aware that BREACH should also be prevented in the app-layer,

Posted at Nginx Forum:,249301,249301#msg-249301

More information about the nginx mailing list