Can we use root path URLs from the web console?
Or in other words from the current full url:
"https://res.cloudinary.com/cloud_name/raw/upload/v1674577120/directory_name/"
remove the /v1674577120 or the whole first part of the url and start directly from /directory_name?
Looks like if using SDK we can get this by using parameter use_root_path
set to true
but can we set it up somehow from the web platform?
Answers
-
The version component vXXXXXXXX that you see in the URL is the version of an image and it is the timestamp of when the asset was last updated (e.g., `v1653004914`). Having this value in the URL ensures to return of the latest version of the image when requested, this is in the case when the image was recently overwritten and the old version is stored in a CDN or browser cache. Using versions in your delivery URLs ensures that your application's users are always requesting the newest copy of the asset (see https://cloudinary.com/documentation/advanced_url_delivery_options#asset_versions).
Also, each image has only the latest uploaded version available for delivery and transformation, and the version number you should use in your URLs is included in the response of our upload API calls and in our Media Library. And Cloudinary does not require the version component to be present in URLs, and it can be removed if you don't want to use that when building your URLs.
For example:
With version:
https://res.cloudinary.com/epasos/image/upload/v1642384007/samples/sample.jpg
https://res.cloudinary.com/epasos/image/upload/v1642384007/samples/sample
Without version:
https://res.cloudinary.com/epasos/image/upload/samples/sample.jpg
https://res.cloudinary.com/epasos/image/upload/samples/sample
If you do use versions in your URLs, it's important to keep the version that you add to your URLs up to date with the asset's current version if you overwrite it; otherwise, you may encounter incorrect caching behavior in CDNs, proxy servers, or a user's device or browser cache.
Note that once you deleted the original version, all derived versions of the asset will also be purged.
I hope this helps and please let us know if you have any further questions.
0