Package | Description |
---|---|
com.tencentcloudapi.teo.v20220901 | |
com.tencentcloudapi.teo.v20220901.models |
Modifier and Type | Method and Description |
---|---|
CreatePurgeTaskResponse |
TeoClient.CreatePurgeTask(CreatePurgeTaskRequest req)
当源站资源更新,但节点缓存 TTL 未过期时,用户仍会访问到旧的资源,此时可以通过该接口实现节点资源更新。触发更新的方法有以下两种:直接删除:不做任何校验,直接删除节点缓存,用户请求时触发回源拉取;标记过期:将节点资源置为过期,用户请求时触发回源校验,即发送带有 If-None-Match 和 If-Modified-Since 头部的 HTTP 条件请求。若源站响应 200,则节点会回源拉取新的资源并更新缓存;若源站响应 304,则节点不会更新缓存;
清除缓存任务详情请查看[清除缓存](https://cloud.tencent.com/document/product/1552/70759)。
|
Constructor and Description |
---|
CreatePurgeTaskRequest(CreatePurgeTaskRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Copyright © 2023. All rights reserved.