为什么nginx gzip_http_version默认为HTTP 1.1

nginx的gzip模块中的gzip_http_version设置的默认值是HTTP 1.1。 为什么? 使用gzip和HTTP 1.0有什么问题吗?

nginx gzip_http_version可以有HTTP 1.0,并有注意事项。

 When HTTP version 1.0 is used, the Vary: Accept-Encoding header is not set. As this can lead to proxy cache corruption, consider adding it with add_header. Also note that the Content-Length header is not set when using either version. Keepalives will therefore be impossible with version 1.0, while for 1.1 it is handled by chunked transfers. 

更多在这里 – http://wiki.nginx.org/HttpGzipModule

这很可能是因为HTTP 1.1是当前版本。 如果现行的版本得到了很好的采用,那么对以前版本的默认是没有意义的。