When Dynamic Route for CDN (DCDN) cannot return the requested resources from the cache of the node nearest to the requester, it retrieves these resources from the origin by using the configured origin protocol policy. Then, it returns the retrieved resources to the requester and also caches them to the node. This topic describes how to configure the origin protocol policy.
If you set the origin protocol policy to Match Client, DCDN communicates with the origin by using HTTP or HTTPS, depending on the protocol of the client request. For example, if the client sends an HTTPS request to access resources that are not cached on a DCDN node, the node uses the HTTPS protocol to request resources from the origin.
- Log on to the Dynamic Route for CDN console.
- In the left-side navigation pane, click Domain Names.
- On the Domain Names page, find the target domain name and click Configure.
- In the left-side navigation pane of the specified domain, click Origin Fetch.
- In the Static Origin Protocol Policy section, turn on Static Origin Protocol Policy.
- Click Modify.
- In the Static Origin Protocol Policy dialog box, set Redirect Type to Match Client, HTTP, or HTTPS as needed.
- Match Client: DCDN communicates with the origin by using HTTP or HTTPS, depending on the protocol of the client request.
- HTTP: DCDN uses only HTTP to access the origin.
- HTTPS: DCDN uses only HTTPS to access the origin.
- Click OK.