This support forum is no longer in use. Please use the Cloudinary Community at https://community.cloudinary.com/ to receive assistance from other members of the community and from Cloudinary's support team. For account-specific questions or if you believe that you've encountered a bug, please contact the Cloudinary team directly via the "submit a request" option on this support site.

Comments

3 comments

  • Official comment
    Avatar
    Maor Gariv

    Hi Luiz,

     

    There are several options to get the latest image. An immediate way is to use image versions (the latest version is returned as part of the upload response). Image versions serve as a cache busting tool and make sure the new images are being pulled.

     

    Alternatively, you can use the `invalidate` parameter whenever updating an image to purge all existing derived images from the CDN. For more info,

    http://cloudinary.com/documentation/upload_images#invalidating_cached_images_on_the_cdn

     

    Hope it helps!

    Best,

    Maor

    Comment actions Permalink
  • Avatar
    Luiz

    Hi Maor,

    I'm using invalidate in my .NET integration Code but still some thumbnail images are not refreshed with new images. 

    Below is my code for invalidating & deleting image in cloudinary from .NET

    var delParams = new DelResParams()
    {
    PublicIds = new List<string>() { ConfigurationManager.AppSettings[delreq.Application].ToString() + delreq.UnitID },
    Invalidate = true
    };
    var delresult = cloudinary.DeleteResources(delParams);

     

    Link example:

    http://res.cloudinary.com/ryder-trucks/image/upload/t_media_lib_thumb/usca/442243.jpg (thumbnail not refreshed)

    http://res.cloudinary.com/ryder-trucks/image/upload/t_media_lib_thumb/v1505508982/usca/442243.jpg (thumbnail refreshed with versioned URL)

    0
    Comment actions Permalink
  • Avatar
    Maor Gariv

    Hi Luiz,

    Sorry for the delayed response.

    Please use the Destroy API to delete and invalidate images. This API is rate unlimited (unlike the Admin API) and is far more performant (can support high concurrency).

     

    Give it a try and let me know how it goes?

     

    Best,

    Maor 

    0
    Comment actions Permalink

Post is closed for comments.