CDN cdn缓存

cdn缓存如何设置

小新
151
2021-03-17 18:49:43
栏目: 云计算

cdn缓存如何设置

设置cdn缓存的示例:

POST方式:

POST /2016-09-01/domain/SetCacheRuleConfig

Host: cdn.api.ksyun.com

X-Amz-Date: date

Authorization:authorization string

x-action: SetCacheRuleConfig

x-version: 2016-09-01

Content-Type: application/json

{

"DomainId":"2D09XC0",

"CacheRules":

[{

"CacheRuleType":"directory",

"Value":"/XXX/",

"CacheTime":11,

"RespectOrigin":"",

"CacheEnable":"on"

},

{

"CacheRuleType":"exact",

"Value":"/XXX/XXX.TXT",

"CacheEnable":"off"

}]

}

0
看了该问题的人还看了