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:

  1. Filerobot Admin
  2. 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.

API

The Invalidation API is a REST API to invalidate images from the CDN and Filerobot resizing servers.

Step 1 - get your API key

Your API key is available in the Filerobot admin console, under settings:

Step 2 - call the Invalidation REST API

POST https://api.filerobot.com/invalidate
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": "wildcard",
       "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.

host: "http://api.filerobot.com/invalidate" theme: light headers: X-Filerobot-Key: bf72d18393ea40d5b4fccd9fb83806fa Content-Type: application/json editor_theme: light method: POST body: | { "invalidation": { "token" : "fusqadtm", "scope" : "url", "url": "/http://sample.li/now.php?width=500" } }