ProxyCacheContent
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
cache_key |
No |
PluginProxyCacheKey object |
The configuration parameter is used as the value of the cache proxy key. cache_key is mandatory. Therefore, at least one of the system_params, parameters, and headers parameters needs to be configured. |
cache_http_status_and_ttl |
No |
Array of PluginProxyCacheHttpStatusTtl objects |
HTTP status codes that can be cached and the cache duration. |
client_cache_control |
No |
Allows the client to use the Cache-Control header to affect the cache policy. |
|
cacheable_headers |
No |
Array of strings |
Backend headers that can be cached. By default, only the Content-Type, Content-Encoding, and Content-Language headers are cached. A maximum of 20 parameters are supported. The value is a string of 1 to 64 characters. System response headers (such as x-apig-* and x-request-id) added by APIG cannot be added. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
system_params |
No |
Array of strings |
The built-in system parameter of the gateway is used as the value of the cache proxy key. The gateway parameters are as follows:
|
parameters |
No |
Array of strings |
The request query parameter is used as the value of the cache proxy key. |
headers |
No |
Array of strings |
The request header is used as the value of the cache proxy key. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
http_status |
No |
Array of integers |
Determines whether to cache content based on the HTTP response code. |
ttl |
No |
Integer |
Cache expiration time, in seconds. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
mode |
No |
String |
Mode in which the client is allowed to affect the cache policy. Options:
|
datas |
No |
Array of strings |
If mode is set to apps, values of App ID in the following table are allowed. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot