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.

Background information

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.

Note The origin must support both port 80 and port 443. Otherwise, the back-to-origin process may fail.

Procedure

  1. Log on to the Dynamic Route for CDN console.
  2. In the left-side navigation pane, click Domain Names.
  3. On the Domain Names page, find the target domain name and click Configure.
  4. In the left-side navigation pane of the specified domain, click Origin Fetch.
  5. In the Static Origin Protocol Policy section, turn on Static Origin Protocol Policy.
  6. Click Modify.
  7. 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.
    Static Origin Protocol Policy
  8. Click OK.