- 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.
- C++面向對象程序設計(第三版)
- Design Principles for Process:driven Architectures Using Oracle BPM and SOA Suite 12c
- Visual FoxPro程序設計教程(第3版)
- Unity 2020 Mobile Game Development
- Software Testing using Visual Studio 2012
- Practical Windows Forensics
- Full-Stack Vue.js 2 and Laravel 5
- 軟件工程
- Building a Quadcopter with Arduino
- 全棧自動化測試實戰:基于TestNG、HttpClient、Selenium和Appium
- R語言:邁向大數據之路(加強版)
- Java 9 Programming By Example
- AI自動化測試:技術原理、平臺搭建與工程實踐
- 啊哈C語言!:邏輯的挑戰(修訂版)
- C/C++代碼調試的藝術