HTTP/2 is the latest HTTP protocol released on May 2015. It is supported by most mainstream browsers, such as Chrome, Internet Explorer 11, Safari, and Firefox.
HTTP/2 features optimized performance and is compatible with HTTP/1.1 semantics. Its features are similar to those of SPDY and completely different from HTTP/1.1. For example, HTTP/2 is a binary protocol rather than a text-based protocol. In addition, it uses HPACK to compress HTTP headers and supports multiplexing and server push.
- HTTP/2 is a binary protocol.
- Header compression: HTTP/2 compresses and transfers message headers in HPACK format and creates an index table for these headers. When sending messages with the same header, only the index number of the header is sent. This improves the efficiency of message transmission.
- Multiplexing: For HTTP/2, a blocked request will not affect other concurrent requests or responses.
- Server push: With HTTP/2, servers can push resources to clients without initiating a request. This accelerates webpage loading.
- Security: HTTP/2 is based on HTTPS. Security is a major feature of HTTP/2.
- Before enabling HTTP/2, make sure you have successfully configured an HTTPS certificate.
- If you are configuring the HTTPS certificate for the first time, you must complete configuring the certificate and wait the certificate to take effect before enabling HTTP/2.
- If you have enabled HTTP/2 but the HTTPS certificate function is disabled, HTTP/2 is automatically deactivated.
- Go to the Domain Names page, select the target domain name, and click Configure.
Choose HTTPS Configuration > HTTP/2 Settings and enable HTTP/2.