Skip to main content

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.
If cache_unit is “h”, maximum cache_expiry should be 8765.
If cache_unit is “m”, maximum cache_expiry should be 525600.
If cache_unit is “s”, maximum cache_expiry should be 31536000.

Integer

Yes

cache_unit

Specifies the time unit (s (seconds), m (minutes), h(hours), d (days)) for cache_expiry.

String

Yes

Payload

CODE
{
    "status_code_cache": [
        {
            "status_codes": [
                500,
                501
            ],
            "cache_expiry": 5,
            "cache_unit": "m"
        },
        {
            "status_codes": [
                400
            ],
            "cache_expiry": 1,
            "cache_unit": "m"
        }
    ]
}
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.