Purge Cache
Last updated
Last updated
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?1234
Change the name of your file and use the new one. Eg. /logos/logo_v2.png
Change the folder of your file. Move, copy, or upload to another directory and use the new one. Eg. /newLogos/logo.png
Use 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
In order to purge a file or path, your input should satisfy at least 1 of the conditions below
The path
should be the complete path of the file.
That means a valid file path and an extension should exist.
Valid Examples:
/logo.png
/company/logo.png
Invalid 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/imgs
The 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.