Skip to main content

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.

  1. If you want to refresh files in the cache, purge the cache. Purging the cache will delete the currently cached versions.

  2. In the Control panel, open the top menu, click Products, and select CDN.

  3. From the CDN resource's menu, select Preload cache.

  4. 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.
  5. Click Preload cache. During preloading, the CDN resource will be in the PROCESSING status. Preloading will be completed when the CDN resource changes to the ACTIVE status.