Filerobot DAM Console
CDNs usually cache images for as long as the images are requested by end users. If you want to update an original image, you have two ways of doing so in the CDN cache:
- Filerobot Admin
- API
Admin interface
To invalidate (flush) the image from the Filerobot admin console, log in to the console and navigate to Accelerate / Invalidation:
This will remove the image(s) from all CDN nodes and Cloudimage resizing servers.
Do not use the full path of your image but only the /origin_image_url?operations&filters part as invalidation path. For example, to invalidate //fusqadtm.filerobot.com/demo/flat1.jpg?w=500, you need to input /demo/flat1.jpg?w=500.
Headers:
X-Filerobot-Key: your API KEY
Content-Type: application/json
Body:
The body of the request must contain the invalidation url in the form /original_image_url?operations&filters.
To invalidate: https://YOUR_TOKEN.filerobot.com/folder1/now.php?width=300
Use: /folder1/now.php?width=300
Invalidate specific size images
{
"invalidation": {
"token": "YOUR_TOKEN",
"scope": "urls",
"urls": [
"/docs/paris.jpg?width=400",
"/docs/flat.jpg?width=400", ...
]
}
}
Invalidate all size of images
{
"invalidation": {
"token": "YOUR_TOKEN",
"scope": "original",
"urls": [
"docs/paris.jpg",
"docs/flat.jpg", ...
]
}
}
Invalidate all images images matching one or several wildcards
{
"invalidation": {
"token": "YOUR_TOKEN",
"scope": "original",
"urls": [
"*docs*",
"*have-this-on-path*", ...
]
}
}
Invalidate all your images (this will trigger a re-download of all images from your origin)
{
"invalidation": {
"token": "YOUR_TOKEN",
"scope": "all",
}
}
Flushing all images will result in Filerobot reprocessing all your images. This will result in slower image loading times for the first times the images are processed. Contact us if you have more than 1 TB of monthly CDN traffic or 1 TB of storage.
Try it out with the demo token
You can use our sample image showing the time it is resized the first time:
https://fusqadtm.filerobot.com/http://sample.li/now.php?width=500
Click on 'Send' to call the Invalidation API and reload the image above (invalidation takes about 30 seconds to complete). You should see the new time. You might need to disable your browser's local cache to see the new image immediately.