Content segmentation
You can segment CDN content: request it from origins and store it on servers in parts. Segmentation is enabled in the resource settings.
If the setting is enabled:
-
Files with a size of 10 MB or more are requested from origins in parts. The maximum size of each part is 10 MB.
For example, a 42 MB file will be split into four 10 MB parts and one 2 MB part.
All parts are requested in parallel, each in its own thread. This enables you to download the entire file and start sending it to the client faster.
Warning
For segmentation to work correctly, origins must support partial GET requests with the
Rangeheader. Regardless of which origin within a group a file part is requested from, responses containing this file part must have the sameContent-LengthandETagheader values. -
To send a whole file to the client, all the parts are combined back into one file before sending.
-
If caching on CDN servers is enabled, the file parts will continue to be stored on the server.