- NGINX Cookbook
- Tim Butler
- 187字
- 2021-07-03 00:04:33
Enabling HTTP/2 on NGINX
The now ratified HTTP/2 standard is based on SPDY, an experimental protocol that Google developed internally. As shown in the diagram in the previous recipe, establishing an HTTPS connection can be quite time consuming. With HTTP/1.1, each connection to the web server must follow this process and wait for the handshake to complete.
In HTTP/2, this handshake time is reduced, but more importantly the requests are multiplexed over a single TCP connection. This means that the handshake only has to occur once, significantly reducing the latency of a site for the end user. In fact, it means that an HTTP/2-based site can actually be quicker than a standard HTTP-based one.
There are a number of other benefits that HTTP/2 also provides, such as header compression, a new binary protocol, and a server-based push. All of these further increase the efficiency of HTTP/2, yet it also remains backwards compatible with HTTP/1.1:

All modern browsers (as shown in the preceding figure) support HTTP/2 natively, so it's ready to deploy in production. NGINX officially supported HTTP/2 starting with version 1.9.5.
- JSP網(wǎng)絡(luò)編程(學(xué)習(xí)筆記)
- Python快樂編程:人工智能深度學(xué)習(xí)基礎(chǔ)
- 華為HMS生態(tài)與應(yīng)用開發(fā)實(shí)戰(zhàn)
- 信息技術(shù)應(yīng)用基礎(chǔ)
- Android開發(fā):從0到1 (清華開發(fā)者書庫(kù))
- Learning Continuous Integration with TeamCity
- Mastering C++ Multithreading
- Hands-On Neural Network Programming with C#
- R語言:邁向大數(shù)據(jù)之路(加強(qiáng)版)
- Ext JS 4 Plugin and Extension Development
- Raspberry Pi Blueprints
- 算法訓(xùn)練營(yíng):海量圖解+競(jìng)賽刷題(入門篇)
- 詩(shī)意的邊緣
- Roslyn Cookbook
- 軟件自動(dòng)化測(cè)試實(shí)戰(zhàn)解析:基于Python3編程語言