Origin fetch means CDN points of presence (POPs) retrieve a resource requested by a client from the origin server when the resource is not cached at POPs or when a prefetch task is deployed.
ApsaraVideo VOD supports multiple origin fetch features for accelerated domain names. The following table describes the supported features.
Feature | Description | References |
Specify a server domain name for origin fetch | If the IP address of your origin server is associated with multiple domain names or sites, you can set the HOST header in requests to specify the site to which the requests are redirected. Alibaba Cloud CDN redirects requests to the site specified by the HOST header. | |
Configure an origin protocol policy | After you enable this feature, the protocol that is used by clients to request resources is used for origin fetch. The origin protocol policy takes effect for dynamic and static resources. | |
Retrieve content from private OSS buckets | You can accelerate access to an Object Storage Service (OSS) bucket whose access control list (ACL) is set to private. | |
Specify a site for origin fetch | If Alibaba Cloud CDN points of presence (POPs) access your origin over HTTPS and the IP address of the origin server is associated with multiple domain names, you must configure Server Name Indication (SNI) to specify the domain name that you want the POPs to access. | |
Specify a maximum timeout period for origin requests | You can specify the period of time that a POP waits for a response after a request is redirected to the origin server. If the POP does not receive a response within the specified timeout period, the connection between the POP and origin server closes. | |
Create custom rules to redirect requests to a specific origin server | You can specify different origin servers by configuring the request headers, query strings, request parameters, paths, and request cookies. | |
Specify whether to allow POPs to process the HTTP 301 or 302 status code instead of returning the status code to clients | After you configure 301/302 redirection, Alibaba Cloud POPs process the HTTP 301 or 302 status code that is returned by your origin server instead of returning the status code to clients. | |
Configure origin fetch over IPv6 | After you configure origin fetch over IPv6, CDN POPs can forward requests to origin servers over IPv6 based on different origin fetch policies, such as forwarding requests to origin servers that use IPv6 addresses, using the IP version of the client request, and load balancing between IPv4 and IPv6 addresses. | |
Add, delete, modify, or replace HTTP request headers | You can rewrite HTTP headers in requests before they are redirected to origin servers. | |
Add, delete, modify, or replace HTTP response headers | You can rewrite HTTP headers in responses from origin servers. | |
Rewrite URLs in origin requests | You can create rules to rewrite URLs in requests before they are redirected to origin servers. |