@@ -26,6 +26,7 @@ inputs:
26
26
- host : abc.com
27
27
async : true
28
28
autoRefresh : true
29
+ onlyRefresh : false
29
30
cache :
30
31
simpleCache :
31
32
followOrigin : on
@@ -127,9 +128,10 @@ inputs:
127
128
| 参数名称 | 是否必选 | 默认 | 描述 |
128
129
| ----------- | -------- | ------- | --------------------------------------------------------------------------------- |
129
130
| async | 否 | `false` | 是否为异步操作,如果为 true,则不会等待 CDN 创建或更新成功再返回, |
130
- | autoRefresh | 否 | `false` | 是否自动刷新预热 CDN |
131
+ | autoRefresh | 否 | `false` | 是否自动刷新 CDN |
131
132
| onlyRefresh | 否 | `false` | 是否只刷新预热 CDN,如果为 `true`,那么只进行刷新预热操作,不会更新 CDN 配置 |
132
133
| refreshCdn | 否 | | 刷新 CDN 相关配置,参考 [refreshCdn](#refreshCdn) |
134
+ | pushCdn | 否 | | 预热 CDN 相关配置,参考 [pushCdn](#pushCdn) |
133
135
| host | 是 | | 需要接入的 CDN 域名。 |
134
136
| host | 是 | | 需要接入的 CDN 域名。 |
135
137
| https | 否 | | Https 加速配置,参考:https://cloud.tencent.com/document/api/228/30987#Https |
@@ -140,10 +142,16 @@ inputs:
140
142
141
143
> 注意:`async` 参数对于配置多个 CDN 域名需求,或者在 CI 流程中时,建议配置成 `true`,不然会导致 serverless cli 执行超时,或者 CI 流程超时。
142
144
145
+ 更多配置,请移至官方云 API 文档:https://cloud.tencent.com/document/product/228/41123
146
+
143
147
# ### refreshCdn
144
148
145
149
| 参数名称 | 是否必选 | 默认 | 描述 |
146
150
| -------- | -------- | ---- | ------------------- |
147
- | urls | 否 | [] | 需要刷新的 CDN 路径 |
151
+ | urls | 否 | [] | 需要刷新的 CDN 目录 |
148
152
149
- 更多配置,请移至官方云 API 文档:https://cloud.tencent.com/document/product/228/41123
153
+ # ### pushCdn
154
+
155
+ | 参数名称 | 是否必选 | 默认 | 描述 |
156
+ | -------- | -------- | ---- | ------------------- |
157
+ | urls | 否 | [] | 需要预热的 CDN URLs |
0 commit comments