Configure HTTP connection to a CDN resource
You can configure which protocols users will use to connect to a CDN resource.
The HTTP/2 protocol is enabled by default; it speeds up content loading by compressing headers.
You can also:
- enable HTTP/3 connection, for example, if your content is only available in a mobile app or users have an unstable internet connection;
- enable only HTTPS connection, if you want to prohibit HTTP connection;
- redirect from HTTP to HTTPS;
- disable HTTP/2 connection in case of compatibility issues, for example, if the content source does not support HTTP/2.
You can use HTTP/2, HTTP/3, and HTTPS-only connections simultaneously. The content will be available via HTTPS, while both HTTP/2 and HTTP/3 protocol versions will be supported.
Enable HTTP/3 connection
- In the control panel, from the top menu, click Products and select CDN.
- In the CDN resources section, open the CDN resource page → General tab.
- Select the Use HTTP3 checkbox.
- Click Apply. While the settings are being applied, the CDN resource will have the
PROCESSINGstatus. During this time, applying other settings is unavailable. The settings will apply when the CDN resource changes to theACTIVEstatus.
Enable HTTPS-only connection
You cannot enable only HTTPS connection and redirect from HTTP to HTTPS at the same time.
If you are using a custom domain, make sure that it is accessible via HTTPS. If the domain is unavailable, check the TLS (SSL) certificate of the CDN resource.
When enabling the option, users connecting to the CDN resource via HTTP will receive a 403 Forbidden access error, and the content will not be delivered to them.
- In the control panel, from the top menu, click Products and select CDN.
- In the CDN resources section, open the CDN resource page → General tab.
- Select the Use only HTTPS checkbox.
- Click Apply. While the settings are being applied, the CDN resource will have the
PROCESSINGstatus. During this time, applying other settings is unavailable. The settings will apply when the CDN resource changes to theACTIVEstatus.
Redirect from HTTP to HTTPS
You cannot redirect from HTTP to HTTPS and enable only HTTPS connection at the same time.
If you are using a custom domain, make sure that it is accessible via HTTPS. If the domain is unavailable, check the TLS (SSL) certificate of the CDN resource.
When redirecting, all HTTP requests will receive responses about this — 301 Moved Permanently specifying the HTTPS address. The content will be delivered.
- In the control panel, from the top menu, click Products and select CDN.
- In the CDN resources section, open the CDN resource page → General tab.
- Select the Redirect to HTTPS checkbox.
- Click Apply. While the settings are being applied, the CDN resource will have the
PROCESSINGstatus. During this time, applying other settings is unavailable. The settings will apply when the CDN resource changes to theACTIVEstatus.
Disable HTTP/2 connection
HTTP/2 protocol usage is enabled by default.
If HTTP/2 is disabled, connections will be established using the HTTP/1.1 protocol.
- In the control panel, from the top menu, click Products and select CDN.
- In the CDN resources section, open the CDN resource page → General tab.
- Clear the Use HTTP2 checkbox.
- Click Apply. While the settings are being applied, the CDN resource will have the
PROCESSINGstatus. During this time, applying other settings is unavailable. The settings will apply when the CDN resource changes to theACTIVEstatus.