How can I use a new upload image to overwrite the old one?
If I upload a image with a existing name, I can see the old image is overwritten in Cloudinary CP. But on my website still shows the old one.
I know the Cloudinary will cache the old ones and use the image version to get the latest images. But my project is not using Cloudinary Api, so I couldn't know the image version.
Any other ways to get this around please?
-
Hi Rain,
A new versioned URL is generated each time when the image is uploaded.
When uploading through the Media Library by default the invalidation is set to true and previous URL is invalidated depending on your account's setting. More information in this article: https://support.cloudinary.com/hc/en-us/articles/202520852-I-ve-replaced-an-existing-image-with-a-new-one-but-my-website-still-shows-the-old-one-Why-is-that-
Thanks,
Aditi0 -
Thank for your reply. But except for using Cloudinary Api, is there any other automatic way or any parameters to get the latest image? Thx!!
0 -
Hi Rain,
If you are uploading through the UI you will see the latest versioned URL in the Media Library.
If you are doing client-side or server-side upload you will see the versioned URL in the JSON response.
Thanks,
Aditi
0
Post is closed for comments.
Comments
3 comments