如何替换cloudinary中的图像并保持相同的URL? [英] How to replace an image in cloudinary and keep the same URL?

查看:72
本文介绍了如何替换cloudinary中的图像并保持相同的URL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在cloudinary中有一个图像要替换,但保留原始URL.有可能吗?

I have an image in cloudinary that I would like to replace but keep the original URL. Would it be possible?

推荐答案

是的,可以更新图像并保留相同的URL.

Yes it is possible to update an image and keep the same URL.

上载新图像时,要将其public_id与要替换的现有图像相同.然后,您的Cloudinary帐户将使用覆盖旧映像的新映像进行更新.

When you upload the new image you want to make its public_id be the same as the existing image you're trying to replace. Then your Cloudinary account will be updated with the new image overriding the old one.

但是请注意,如果原始(旧)图像已被访问,则可能会缓存在CDN中.

However note that if the original (older) image was already accessed, it might get cached in the CDN.

这是一篇很有帮助的文章,可用于进一步阅读如何更新现有图像以及如何在需要时使CDN上的资源无效:

Here is a helpful article for further reading on how to update already existing images and how you can invalidate your resources on the CDN if need be:

查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆