Error Status Code Cache Expiration
Last updated
Last updated
© 2025 Medianova. All rights reserved.
The Error Status Code Cache Expiration feature in the Medianova Cloud Panel for dynamic content allows you to cache error responses (such as 404, 500, etc.) generated by dynamic content for a specified duration. This helps manage error handling efficiently by reducing unnecessary load on the origin server and optimizing cache usage.
Cache Error Status Codes: You can define a set of dynamic error codes (e.g., 404, 500) and specify a cache duration for each. By caching these error responses, you prevent the origin server from repeatedly processing the same error conditions, reducing server load and improving overall performance.
Removal of Caching Definition: If you decide that certain error codes should no longer be cached, you can remove their definitions. Requests for these error codes will then bypass the CDN cache and go directly to the origin server. However, cached error content will remain in the cache until the specified cache duration expires, ensuring that the system operates smoothly during transitions.
By configuring Error Status Code Cache Expiration for dynamic content, you can control how error responses are handled and cached, reducing server strain while still allowing for accurate error management when needed. This feature is especially useful for error pages that are generated dynamically, such as custom 404 pages or server error responses, where frequent caching can save resources without compromising on error response accuracy.
Click on the CDN Resources section in the left-hand menu of the Cloud panel.
Select the relevant resource.
Click on the Caching tab.
Navigate to the Error Status Code Cache Expiration section in the Medianova Cloud Panel.
Click the Add button to create a new definition.
Cache Time: Specify the cache duration for the error code (in seconds).
Status Code: Enter the HTTP status code(s) that you want to cache (e.g., 404, 500, etc.).
Add Multiple Definitions: You can add multiple error status codes and their respective cache durations by clicking the Add button repeatedly.
Once all necessary error codes and cache times are defined, click Submit to apply the changes.