【问题标题】:Purge a URL from the Fastly CDN via API call with curl or wget通过使用 curl 或 wget 的 API 调用从 Fastly CDN 中清除 URL
【发布时间】:2015-03-25 22:07:24
【问题描述】:

我使用 bash 脚本来部署一个静态网页,该网页使用 Fastly 作为 CDN。当/example.html 被部署时,我想通过他们在bash 脚本中的API 清除/example.html。我知道有一个很好的 Ruby gem,但我想在 bash 脚本中使用 curlwget

如何使用 curlwget 通过 Fastly API 清除给定的 URL?

【问题讨论】:

    标签: bash curl wget cdn fastly


    【解决方案1】:

    通过

    curl -X PURGE http://www.example.com/image.jpg

    正如他们在docs 中解释的那样。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-07-03
      • 2015-10-04
      • 2011-05-04
      • 2019-01-29
      相关资源
      最近更新 更多