Skip to content
Console

刷新缓存

POSThttps://api.bitiful.com/cdn/cache/refresh

按 URL 或目录刷新 CDN 缓存,刷新后访问者会拿到最新内容。

Authentication

Authorizationstring

控制台的 API Token,直接作为 Authorization 请求头的值(不加 Bearer 前缀)。在 控制台 › API Token 获取。

Request

This endpoint expects an object.
typeenumRequired

刷新类型:url 刷新指定 URL,directory 刷新整个目录。

Allowed values:
url_listlist of URLsRequired<=20 items

要刷新的 URL 或目录列表,最多 20 个。URL 中不能包含星号 *;目录或文件名含 % 等特殊字符时需先进行 URL 编码。

Response

刷新任务已提交(JSON)。