Traditionally, CDN edge server stores and caches the complete file when a user requested it. This works wells for small size files but on larger file, for example videos that usually more than 1 GB, it could possibly overload the CDN edge server even when the user only spent watching the first few minutes of the videos.
With the introducing slicing module into the system, the module allows to chop the full file into smaller pieces and cache the specified duration on the edge server. This reduces the diskspace wastage and improve the edge server's stability and performance.
Slice operations are carried on the backend and can only be verified using raw log:
- a 1GB test file prepared and configured to slice every 2MB
- As shown the raw log example below, the variable $body_bytes_sent is displaying 2000 bytes.
00:00:00 +0000 123456789 22.214.171.124 GET test-site.com /testfile.txt 200 1086 HIT 0.000 0.002 110972 234567891 345678912 test-site.com 126.96.36.199 Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36 https://www.test-site.com/test-page - 2000 456789123 TLSv1.3 - - - - - - - - V8
This feature is currently released as beta feature. There are some known issues, which some of advanced setting features are not compatible with this slice module and we're currently working to fix it.
kindly contact support team to enable it on your CDN resources.