Skip to main content

Manage files in the cache

Last update:

Manage files in the cache

Clear cache

You may need to clear the cache if the content on the source has updated or the data is not displaying correctly.

The cache can be spot clean or clean all.

The clearing time depends on the number of files and can take up to 15 minutes. A request to clear the cache can be made no more than once per minute.

Clear cache selectively

  1. В control panels go to CDNCDN resources.

  2. Open the CDN resource page → tab Cache management.

  3. Open the card Clearing the cache.

  4. Select the type of cleaning Selective.

  5. Enter the paths to the files you want to delete from the cache. Enter a relative path (without the resource name), with the following characters at the beginning of the path * or /. Symbol * replaces any number of characters. Specify each path as a separate line, no more than 10 paths in one request.
    You can specify a specific file, directory or group of files with the same extension in the same path, to do this use query syntax.

    Example of a request:

    /path/to/file.jpg
    */directory/*.jpg

    The request will delete the file file.jpg in the specified directory, as well as all files jpgwhich are contained in the directory directory and its child folders.

  6. Click Clear cache. It takes about a minute to generate a purge request. When the request is generated, the purge will begin.

Clear cache completely

  1. В control panels go to CDNCDN resources.
  2. Open the CDN resource page → tab Cache management.
  3. Open the card Clearing the cache.
  4. Select the type of cleaning Complete.
  5. Click Clear all cache.
  6. Enter the name of the CDN resource.
  7. Click Clear all cache. It takes about a minute to generate a purge request. When the request is generated, the purge will begin.

Preload cache

Preloading is required for files between 200 MB and 5 GB in size. You can request to preload the cache no more than once per minute.

  1. If you want to update the files in the cache, first delete the current cached versions, to do so clear the cache.

  2. В control panels go to CDNCDN resources.

  3. Open the CDN resource page → tab Cache management.

  4. Open the card Cache preload.

  5. Enter the paths to the files to be preloaded. Enter a relative path (without the resource name), with the following characters at the beginning of the path * or /. Symbol * replaces any number of characters. Specify each path as a separate line, no more than 10 paths in one request.
    You can specify a specific file, directory or group of files with the same extension in the same path, to do this use query syntax.

    Example of a request:

    /path/to/file.jpg
    */directory/*.jpg

    The request will preload the file file.jpg in the specified directory, as well as all files jpgwhich are contained in the directory directory and its child folders.

  6. Click Load cache.

Query syntax

Use the syntax to cache or cache only certain files.

All versions of one fileFile path:
/path/to/file.jpg
File with query parameterThe path to the file with the query parameter:
/path/to/file.jpg?VERSION
Directory files

A path mask without a domain name wrapped in a statement *:


*/path/to/directory/*

Files with a specific extensionOperator * and file extensions:
*.jpg
Directory files with a specific extensionA path mask without a domain name wrapped in a statement *, indicating the extension:
*/path/to/directory/*.jpg