本文介绍了如何强制清除或使Azure CDN内容无效?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于性能原因,我所拥有的内容很少更改,因此我希望在Azure CDN上提供这些更改.但是,当内容确实发生更改时,立即提供更新的数据很重要.理想情况下,我可以设置一个较长的TTL,但是在更新它时可以主动告诉CDN使内容过期.我该怎么做?目前没有缓存失效或清除API,我宁愿不设置较短的TTL.

I have content that rarely changes that I want to serve over the Azure CDN for performance reasons. When the content does change, though, it's important that the updated data is immediately available. Ideally, I'd be able to set a long TTL but then proactively tell the CDN to expire content when I update it. How can I accomplish this? There is no cache invalidation or purge API right now, and I would rather not set a short TTL.

推荐答案

2015年12月,Azure团队添加了通过REST API刷新或清除CDN的功能(https://msdn.microsoft.com/en-us/library/mt634451.aspx ).首先,此功能仅适用于使用新的Azure门户( http://portal.azure.com )创建的终结点. ,使用旧版管理界面创建的CDN将在2016年初迁移().

In 2015 December the Azure team added the ability to refresh or purge the CDN via REST API (https://msdn.microsoft.com/en-us/library/mt634451.aspx).In the beginning, this function is only available for endpoints created with the new Azure Portal (http://portal.azure.com), however, CDNs created with the old management surface will be migrated in the beginning of 2016 (https://feedback.azure.com/forums/169397-cdn/suggestions/556307-ability-to-force-the-cdn-to-refresh-any-cached-con).

这篇关于如何强制清除或使Azure CDN内容无效?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 16:14