Configure Range back-to-origin to reduce back-to-origin traffic and improve response times for large files.
How it works
Range back-to-origin lets a client request a specific byte range from the origin server instead of the full file. This reduces transfer time for large audio and video files.
-
Your origin server must support Range requests by processing the Range header and returning 206 Partial Content responses.
-
This feature is enabled by default in the ApsaraVideo VOD console.
Procedure
-
Log in to the ApsaraVideo VOD console.
-
In the left-side navigation pane, under Configuration Management, click CDN Configuration > Domain Names.
-
Find the domain name that you want to configure and click Configure in the Actions column.
-
Click the Video Related tab. In the Back-to-origin of Range section, click Modify.
-
Select a Range back-to-origin option and click OK.
Value
Description
Example
Enable
The origin server returns only the requested byte range. The CDN node delivers this range to the client, improving response times.
A client sends
range:0-100to a CDN node. The CDN node forwardsrange:0-100to the origin server, which returns bytes 0 to 100 (101 bytes total). The CDN node delivers these bytes to the client.Disable
CDN nodes retrieve the entire file from the origin server, even for partial requests. The client disconnects after receiving the requested bytes, so the full file is not cached. This lowers the cache hit ratio and increases back-to-origin traffic.
A client sends
range:0-100to a CDN node. The CDN node requests the full file from the origin server without the Range header. After delivering the requested 101 bytes, the client disconnects, so the full file is not cached on the CDN node.Force
CDN nodes always use Range requests to retrieve content from the origin server, regardless of whether the client request includes a Range header.
If you set Back-to-origin of Range to Force, ensure your origin server supports the Range header.
NoteAll files are retrieved from the origin server in chunks.