在图解http里面看到Content-Encoding对应的是内容编码,TE对应的是传输编码。文件通过内容编码的格式压缩,然后再解压。而TE是决定分块的压缩格式。Content-Encoding和TE的作用感觉有重叠。
https
Transfer-Encoding: chunked
Content-Length
Content-Encoding: gzip
Content-Type: text/html; charset=utf-8
UTF-8
1010
Content-Type: application/x-gzip
.gz
1.4m articles
1.4m replys
5 comments
57.0k users