Preload files to cache
Cache preloading (preload) allows you to load content into the CDN resource cache before it is requested by any user. This reduces content delivery time for the first request to a CDN resource. Preloading may be needed before a planned high load on the content origin, for example, before a sale, or to quickly update files in the cache.
Cache preloading is supported for files up to 5 GB.
Cache preloading is available 10 times per hour.
-
If you want to update files in the cache, clear the cache. Clearing the cache will remove the current cached versions.
-
In the control panel, on the top menu, click Products and select CDN.
-
In the menu of the CDN resource, select Cache preloading.
-
Specify the relative paths to the files you want to preload. Enter each path on a new line. You can add no more than 10 paths at a time. To preload:
- a specific file — specify
/path/to/file.jpg; - all files starting with
/path/to/(including subfolders) — specify:/path/to; - all files in
/path/and its subfolders — specify:/path.
- a specific file — specify
-
Click Cache preloading. During preloading, the CDN resource will have a status of
PROCESSING. Preloading will be complete when the CDN resource changes to the statusACTIVE.