Skip to main content

Don't cache images that have failed to load

Comments

3 comments

  • Thomas Gurung

    Hi there,

    Thank you for reaching out.

    Currently, it is not possible to not cache links that return an error but I have increased the timeout for your account so please let me know if that helps. 

    Alternatively, you can invalidate errored links via the UI or API per https://cloudinary.com/documentation/media_optimizer_api#cache_invalidation.

    Please do not hesitate to ask me any other questions or queries.

    Kind Regards,
    Thomas

    0
  • Quokka

    Thanks Thomas!

    The increased timeout helped very slightly, IPFS sometimes takes ~5 minutes to retrieve. Is it possible to max out the timeout length?

    Also, this invalidate error link API will probably work. What would be the downsides to invalidating the cache every time the image doesn't load? If it doesn't load for a single user will it invalidate for all?/

    Thank you,

    Quokka

    0
  • Thomas Gurung

    Hi Quokka,

    Thanks for getting back. Unfortunately, the timeout is already max. 

    And yes the invalidation will invalidate for all users/devices as our edge servers will have to fetch the resource. 

    Please let me know if you have any other questions or queries.

    Kind Regards,
    Thomas

    0

Post is closed for comments.