All Products
Search
Document Center

Dynamic Content Delivery Network:Configure back-to-origin requests to retrieve dynamic content

Last Updated:Nov 15, 2023

Dynamic Content Delivery Network (DCDN) accelerates the delivery of dynamic content by using an optimal route selected by an intelligent routing mechanism. This topic describes how to configure back-to-origin requests to retrieve dynamic content, including the protocol used to retrieve dynamic content and whether to enable load balancing. These configurations are independent of each other. You can perform configurations based on your business requirements.

Configure the origin protocol policy to retrieve dynamic content

The protocol used to retrieve dynamic content must be the same as that used by the client. If different protocols are used, you can configure the protocol used to retrieve dynamic content. If you do not configure the protocol, the protocol of the origin server port is used to retrieve dynamic content by default.

  1. Log on to the DCDN console.
  2. In the left-side navigation pane, click Domain Names.
  3. On the Domain Names page, find the domain name whose acceleration region you want to change and click Configure.
  4. In the left-side navigation pane of the domain name, click Acceleration Rules.
  5. Turn on Dynamic Acceleration.

  6. Click the Dynamic Content Retrieval Settings tab.

  7. Click Modify next to Dynamic Origin Protocol Policy.

  8. In the Dynamic Origin Protocol Policy dialog box, set Redirect Type.

    协议跟随回源

    Parameter

    Description

    Match Client

    When the client uses HTTP or HTTPS to request resources, points of presence (POPs) communicate with the origin server over the same protocol that is used by the client.

    Match Origin Server

    When the client uses HTTP or HTTPS to request resources, POPs communicate with the origin server over the same protocol that is used by the origin server port.

    HTTP

    POPs communicate with the origin server over HTTP.

    HTTPS

    POPs communicate with the origin server over HTTPS.

  9. Click OK.

Enable load balancing

Requests are redirected to origin servers based on the performance of origin servers. If you want requests to be redirected based on the weights of origin servers, you need to enable load balancing. Then, requests are redirected to origin servers based on the specified weights to retrieve dynamic content.

  • Performance-based redirection

    Requests are redirected to the origin server with the best performance.

  • Weight-based redirection

    Requests are redirected to origin servers based on the specified weights. To modify the weight of an origin server, see Configure an origin server.

  1. Log on to the DCDN console.
  2. In the left-side navigation pane, click Domain Names.
  3. On the Domain Names page, find the domain name whose acceleration region you want to change and click Configure.
  4. In the left-side navigation pane of the domain name, click Acceleration Rules.
  5. Turn on Dynamic Acceleration.

  6. Click the Dynamic Content Retrieval Settings tab.

  7. Turn on Load Balancing to enable Load Balancing.