HTTP/2

Last updated: 2023-09-07 15:05:47

What is HTTP/2?

By default, EdgeOne enables HTTP/2 access, supporting client-initiated requests via the HTTP/2 protocol. Hypertext Transfer Protocol Version 2 (HTTP/2 or HTTP 2.0) is the second major version of the HTTP protocol. It can effectively reduce network latency and accelerate site page loading.
Note:
1. If the client request does not utilize HTTP/2, EdgeOne is compatible with access via the HTTP 1.x protocol.
2. For configuring access requests, please refer to this document. If you need to configure HTTP/2 origin-pull, please see HTTP/2 Origin-pull.

Preparations

You have configured SSL certificates for all domain names used to access the current site as instructed in Certificate Configuration.

Instructions

Scenario 1: Modifying HTTP/2 Support for All Domain Names of the Site

To enable or disable HTTP/2 for all domain names used to access the current site, refer to the following information:
1. Log in to the EdgeOne console. In the left sidebar, click Site List. Within the site list, click the site that needs to be configured to enter the site details page.
2. On the site details page, select Site Acceleration > Network Optimization to navigate to the Network Optimization details page.
3. Locate the HTTP/2 configuration card. By default, it is enabled, meaning that it supports site acceleration using HTTP/2 by default. You can toggle the switch to configure it on or off.


Scenario 2: Enabling HTTP/2 for Specified Domain Names

To enable or disable HTTP/2 for specified domain names, refer to the following steps:
1. Log in to the EdgeOne console. In the left-hand menu, click on Site List. Within the site list, click on the site that needs to be configured.
2. On the site details page, click Rule Engine.
3. On the rule engine management page, click Create rule to access the new rule editing page.
4. On the page that appears, select HOST from Matching type and specify an operator and a value to match the requests of specified domain names.
5. Click on Action > Select Box. In the pop-up action list, select HTTP/2 as the action. Click on the Switch to configure it to be on or off.

6. Click Save and publish to complete the rule configuration.