The Serve Stale Content feature is a critical fault tolerance and availability measure in ESA. When your origin server experiences an issue, such as a timeout or returning a 4xx or 5xx error, ESA points of presence (POPs) can serve expired cached content for static resources. This ensures your website remains accessible and improves availability and user experience, even during brief origin server outages. This feature is not applicable to dynamic resource requests.
How it works
Use cases
Origin server failure or unavailability: If an origin server becomes unavailable due to a server crash, network interruption, or application error, ESA points of presence (POPs) cannot fetch the latest content.
If the Serve Stale Content feature is not enabled, an ESA node forwards user requests to the origin server, but these requests may fail if the origin server is unavailable, preventing users from accessing the website.
After the Serve Stale Content feature is enabled, ESA POPs can return expired cached content to users even if the origin server is unavailable, ensuring website accessibility.
Procedure
In the ESA console, select Websites, and in the Website column, click the target site.
In the left navigation pane, choose .
Click Create Rule and enter a Rule Name.
In the If requests match... section, set the matching conditions. For more information, see Rule expression syntax.
In the Cache Eligibility section, specify whether to bypass cache. For more information, see Cache eligibility.
Turn on the Serve Stale Content switch.
Click OK.
FAQ
Related documentation
Rule-related features vary in effective priority, reentrancy, and effective granularity. For details, see Characteristics of rule-based features.