How to deal with image versions
Hi, I want to use Cloudinary for a project but image versions are making it impossible.
I made a website that has a ton of pictures on it and I'm about to give access to the client who should be able to modify the content including the pictures. He won't have access to the HTML so he can't edit the URLs of images but he will have access to Cloudinary where he can replace images. The problem is when he replaces an image, it doesn't show up on the website - it keeps showing the old cached image.
I need to somehow either delete the cashed image immediately after the new one is uploaded or have a way of getting to the newest image every time.
The only other option would be to somehow let him use the API (which is impossible since he knows nothing about programming) and then God knows how update the URL on the website which would take hours to implement and frankly, I'd just have to go to a different platform if this was the only option.
-
Hi
When invalidating its important to check the convention of the URLs that are in use.
If you experience delays in invalidation it could be because you use a different convention then our default one, or that the account is configured differently than the convention that is in use.
You could read more about that in the link below:
https://support.cloudinary.com/hc/en-us/articles/360001208732-What-URL-conventions-are-invalidated
If you could open a request at support@cloudinary.com we could take a closer look at your specific use case and would be able to further help.
0 -
Hey, thanks for the response.
I was using the second option but I just changed it to the default one and it's still the same. Also, the problem was there even with photos that weren't in a folder so it shouldn't matter anyway.
Also, there might a bit of a misunderstanding here, the client replaces the photos in the console on your website, not through an API command. So if you were assuming that I had something like invalidate=true as a parameter of the API funciton, well, there is no API function in the equation for me.
Is there a way to invalidate the old image in the console?
0 -
Hi
When using our UI the invalidation happens automatically when deleting or replacing an image.
If you are using our default convention, then you should experience this as well.
We would be happy to further look at any specific cases you could share in the request you opened with us.
Thanks.
0
Post is closed for comments.
Comments
3 comments