Profile pictures from social media sites Facebook, Twitter, and Gravatar are automatically refreshed after a certain caching period. When the caching period has passed, Cloudinary checks whether the profile picture has changed and refetches it if it was.
In order to force refresh a social media profile picture you can use the explicit
API (https://cloudinary.com/documentation/social_media_profile_pictures#refreshing_profile_pictures). This will refresh the image in your Cloudinary account. Be sure to set the invalidate
parameter to true
to ensure the old image is invalidated at the CDN.
In addition, the explicit
call returns the version
parameter. We recommend including the version component as part of the URL in order to bypass CDN cached versions and to force the delivery of the newest image. The url
parameter returned by an explicit
method call already includes the version
component with the updated value.
Alternatively, you can delete the image from your Cloudinary account, while setting the invalidate
parameter to true
in order to invalidate the image through the CDN. Note that it might take up to an hour for the invalidation to fully propagate through the CDN, while the version
component affects the change immediately.
For more information on the explicit
method, please reference the documentation here: https://cloudinary.com/documentation/image_upload_api_reference#explicit
Comments
0 comments
Please sign in to leave a comment.