HTTP1.1存在问题
简介
HTTP2的核心是性能优化,主要是延时和带宽两方面。与HTTP1.X相比的优势在于:
- 低延时。 多路复用(一个域名一个连接)避免了连接频繁创建和慢启动过程;Server Push实现了资源“预读”,提前将资源推送到客户端。
- 带宽占用少。 头部压缩技术及二进制协议减少了对带宽的资源占用;
The focus of the protocol is on performance; specifically, end-user perceived latency, network and server resource usage. One major goal is to allow the use of a single connection from browsers to a Web site.
协议实现
详细清单,查看这里。
参考:
- HTTP2官网:https://http2.github.io/;