There are multiple ways to flush/replace an image.
- Simply add your image URL in the Invalidation query which will invalidate the image url as well as the resizes, for example:
https://demo.cloudimg.io/v7/sample.li/boat.jpg will invalidate /v7/sample.li/boat.jpg as well as /v7/sample.li/boat.jpg?w=200, /v7/sample.li/boat.jpg?w=400 etc.
- Use the invalidation Cloudimage API documented here.
- Use the invalidation Filerobot API documented here.
Please consider that Cache invalidation is process:
1 | Using Origin invalidation trigger |
|
2 | Invalidation process require |
|
Please keep in mind that:
1 | Invalidated files are removed from the CDN | |
2 | They will get populated to the CDN with the first time they get requested again (not before that) | |
3 | First request of a file trigger |
|
4 | If a file get requested at the same time from multiple CDN servers this will cause each server to consider this as first time requesting the file (till the file get propagated to the CDN servers) | |
5 | CDN population get version by version - if you invalidate the Origin - all versions are removed and each version request is treated as first time calling for this image (just skipping the download from your storage if we have cached the origin version of the file) |
If you have any questions or issues, please feel free to contact our Software Engineer and mention the following details:
- Token
- Short description of the issue (including URLs, screenshot, short video if available)
- Steps to reproduce the issue.
Comments
Please sign in to leave a comment.