Question about AWS CloudFront stale-while-revalidate and stale-if-error

I'm trying to understand how AWS CloudFront handles a failed background revalidation when using stale-while-revalidate.

Suppose I have something like:

Cache-Control: max-age=300, stale-while-revalidate=60, stale-if-error=86400

After the object becomes stale, CloudFront serves the stale response and asynchronously revalidates it with the origin.

What happens if that background revalidation fails?

Does CloudFront simply keep the existing stale object in the cache?

Does stale-if-error get invoked when the background revalidation fails?

If both stale-while-revalidate and stale-if-error apply, does SWR take precedence over SIE, similar to Fastly?

Does the failed background request affect the TTL/expiry of the existing cached object?

I'm particularly interested in the behavior of the background request itself, rather than a normal synchronous request to the origin that returns an error.

reddit.com
u/thecoochking — 7 days ago

Tenant overstaying after lease expiry and delaying vacating. Need legal advice

My tenant's rental agreement expired in August 2025. Since then, they have continued occupying the property without a renewed agreement. We have issued multiple notices asking them to vacate, but they keep delaying and giving excuses.

I am considering legal action, but I am concerned that the court process may take several years. Are there any legal remedies available to expedite eviction or encourage them to vacate? Has anyone dealt with a similar situation in India, and what was the outcome?

Location: Uttar Pradesh

Any advice would be appreciated.

reddit.com
u/thecoochking — 2 months ago