Error Status Code Cache Expiration
This setting is available for small, large and Aksela resource types.
Parameters | Description | Type | Required |
---|---|---|---|
organization_uuid | The created organization in Medianova Cloud Panel unit ID value. Path parameter. | String | Yes |
resource_uuid | The created resource in Medianova Cloud Panel unit ID value. Path parameter. | String | Yes
|
status_code_cache | This parameter takes “400,403,404,414,415,500,501,502,503,504,505,301,302” values. | Array | Yes |
cache_expiry | Specifies the duration during which cached content remains valid for errors. If cache_unit is “d”, maximum cache_expiry should be 365. | Integer | Yes |
cache_unit | Specifies the time unit (s (seconds), m (minutes), h(hours), d (days)) for cache_expiry. | String | Yes |
Payload
{
"status_code_cache": [
{
"status_codes": [
500,
501
],
"cache_expiry": 5,
"cache_unit": "m"
},
{
"status_codes": [
400
],
"cache_expiry": 1,
"cache_unit": "m"
}
]
}