HTTP/2 and GZIP Compression

Valentin V. Bartenev vbart at nginx.com
Sat Sep 12 22:34:25 UTC 2015


On Saturday 12 September 2015 20:23:14 Jonny Barnes wrote:
> Can (and indeed should) we use gzip compression when responding over a
> HTTP/2 connection to improve performance for static files?
> 
> The HTTP/2 spec suggests not[1], at least when using TLS. So I was
> wondering if there were more knowledgeable people here than me that could
> weigh in with their opinion.
> 
> [1]: https://httpwg.github.io/specs/rfc7540.html#TLSUsage

You're confusing TLS compression with HTTP compression.

It's completely different things, that work on different levels.
In fact, TLS compression has been disabled in NGINX since 1.1.6.

There's no reason to disable HTTP compression with HTTP/2.

  wbr, Valentin V. Bartenev



More information about the nginx-devel mailing list