【问题标题】:Purge single file cache from Azure CDN using query string使用查询字符串从 Azure CDN 清除单个文件缓存
【发布时间】:2020-09-05 16:42:37
【问题描述】:

我有一个 azure 存储帐户 + cdn + 端点。

特定文件上的内容很少更改,但当发生更改时,我们希望非技术团队能够清除文件的缓存,而无需使用 API 或 Powershell。

我们可以使用查询字符串和缓存规则引擎清除单个文件的 azure cdn 缓存吗?

类似:

https://our-endpoint.azureedge.net/file.html?clearcache=true

或者我们可以使用规则引擎将此文件的 TTL 设置为 1 秒,然后将 TTL 设置回 604800 秒(1 周)

https://our-endpoint.azureedge.net/file.html?setTTL=1
https://our-endpoint.azureedge.net/file.html?setTTL=604800

【问题讨论】:

    标签: azure azure-cdn


    【解决方案1】:

    此功能目前尚不可用,甚至没有共享 ETA。我建议您在此feedback section 中发布功能请求以供将来使用。

    【讨论】:

      【解决方案2】:

      Azure CDN 端点中有一个清除按钮:

      点击后,输入 /file.html & purge。

      或者,您可以设置“缓存每个唯一的 url”来缓存规则。

      【讨论】:

        猜你喜欢
        • 2011-08-24
        • 2014-02-06
        • 2015-06-06
        • 1970-01-01
        • 1970-01-01
        • 2014-10-14
        • 2013-07-24
        • 1970-01-01
        • 2016-06-03
        相关资源
        最近更新 更多