Serving stale content is an important feature for fault tolerance and availability in the ESA service. If your origin server experiences an issue, such as a 4xx or 5xx error or a timeout, ESA points of presence (POPs) can serve expired static content. This keeps your website available during temporary origin server outages, which improves overall availability and the user experience. You do not need to enable this feature for dynamic resource requests.
How it works
Use cases
The origin server fails or is unavailable: When the origin server fails or becomes unavailable for various reasons, such as server downtime, network interruptions, or program errors, ESA POPs cannot fetch the latest content from the origin.
If serving stale content is disabled: When a POP receives a user request, it requests the content from the origin server. If the origin server is down, the request fails, and the user cannot access the website.
If serving stale content is enabled: If the origin server is down, the POP can serve expired cached content to the user. This ensures the website remains accessible.
Procedure
In the ESA console, choose Websites. In the Website column, click the target site.
In the navigation pane on the left, choose .
Click Create Rule and enter a Rule Name.
In the If requests match... section, specify the conditions for incoming requests. For more information, see Composition of rule expressions.
In the Bypass Cache section, specify whether to bypass the cache. For more information, see Cache eligibility.
Turn on the Serve Stale Content switch.

Click OK.
References
Rule-related features vary in execution priority, rule behavior, and configuration scope. For more information, see How ESA rules take effect.