Purge Cache
Once a file is delivered through CDN Link, that means the file is distributed to 200+ Cloud Cache servers around the world and also stored in our internal caches.
Let's say you have a published image called john.imagemash.io/w_100/logos/logo.png, even if you delete the object from your storage or rename it, the file will be accessible from john.imagemash.io/w_100/logos/logo.png. Because it is still a valid file in Caches.
Then you have a couple of options to overcome this situation.
Add a dummy query to your file. (Random string. Split with
?) Eg. john.imagemash.io/w_100/logos/logo.png?1234Change the name of your file and use the new one. Eg.
/logos/logo_v2.pngChange the folder of your file. Move, copy, or upload to another directory and use the new one. Eg.
/newLogos/logo.pngUse Cache Purging. Read below.
In order to purge caches, you have 2 options:
By creating a new purge request through your Dashboard
By using our Purge Cache API
Purge path requirements
In order to purge a file or path, your input should satisfy at least 1 of the conditions below
The
pathshould be the complete path of the file. That means a valid file path and an extension should exist. Valid Examples: β/logo.pngβ/company/logo.pngInvalid Examples: β/logoβ/company/β/logo.png/The path should be at least 15 characters long. That means it could be a complete path, part of the path, or an incomplete path. Valid Examples: β
/companies/my_companyβ/companies/my_com(It will purge all file paths that start with this value) β/my_image_repositoryβ/my_image_repository/β/img.png(Valid because it satisfies the first condition) Invalid Examples: β/logoβ/company/β/company/imgsThe path should be nested in at least 2 folders. That means it could be a complete path, part of the path, or an incomplete path. Valid Examples: β
/img/big/β/img/big/my_(It will purge all file paths that start with this value) β/img/big/logo.pngβ/my_company_big/(Valid because it satisfies the second condition)Invalid Examples: β
/companies/β/company/β/company/imgs
All users have a monthly limit of 500 cache purge requests. Please contact us if you need more limits.
Last updated