When \Drupal\cloudinary_stream_wrapper\StreamWrapper\CloudinaryStreamWrapper::loadResource is invoked, it loads the resource. If the storage submodule is enabled, this is a previously cached version of the image.
The problem is that the version is then passed to the URL which is generated. If the image was updated in Cloudinary, the Drupal image is now stale. The is also a problem if the format is stored.
The data contains "format" and "version" which gets passed to \Cloudinary::cloudinary_url
$version = Cloudinary::option_consume($options, "version");
$format = Cloudinary::option_consume($options, "format");
This is causing stale images, unless you implement a webhook to purge/update these records.
Comments
Comment #2
mglamanHere is a patch.
Comment #3
daniel kulbeThis code is commented out in latest dev.