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 selectively-cleanup or full-cleanup.
Cleanup time depends on the number of files and can take up to 15 minutes. You can request to clear the cache no more than once per minute.
Clear cache selectively
-
In Control Panel, go to CDN → CDN Resources.
-
Open the CDN resource page → Cache Management tab.
-
Open the Clearing Cache card.
-
Select the Selective cleaning type.
-
Enter the paths to the files you want to delete from the cache. Enter a relative path (without the resource name), with
*
or/
at the beginning of the path. The*
character replaces any number of characters. Specify each path on 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 one path, use request syntax.Example of a request:
/path/to/file.jpg
*/directory/*.jpgThe query will delete the
file.jpg
file in the specified directory, as well as alljpg
files that are contained in thedirectory
directory and its child folders. -
Click Clear cache. It takes about a minute to form a purge request. When the request is generated, the cleanup will begin.
Clear cache completely
- In Control Panel, go to CDN → CDN Resources.
- Open the CDN resource page → Cache Management tab.
- Open the Clearing Cache card.
- Select the cleaning type Full.
- Click Clear all cache.
- Enter the name of the CDN resource.
- Click Clear all cache. It takes about a minute to form a purge request. When the request is generated, the cleanup will begin.
Preload cache
Preloading is required for files between 200 MB and 5 GB in size. A request to preload the cache can be made no more than once per minute.
-
If you want to update the files in the cache, first remove the current cached versions, to do so clear cache.
-
In Control Panel, go to CDN → CDN Resources.
-
Open the CDN resource page → Cache Management tab.
-
Open the Preload Cache card.
-
Enter the paths to the files you want to preload. Enter a relative path (without the resource name), with
*
or/
at the beginning of the path. The*
character replaces any number of characters. Specify each path on 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 one path, use request syntax.Example of a request:
/path/to/file.jpg
*/directory/*.jpgThe request will preload the
file.jpg
file in the specified directory, as well as alljpg
files that are contained in thedirectory
directory and its child folders. -
Click Download cache.
Query syntax
Use the syntax to remove from cache or load into cache only certain files.