resp.stale

BOOL, can be read and set, but not unset.

Available inall subroutines.

Whether or not the response is a stale cache hit.

Stale hits are caused by asynchronous revalidation, backend failure, or an explicit return(deliver_stale).

To learn more, refer to staleness and revalidation, resp.stale.is_error, and resp.stale.is_revalidating.

User contributed notes

BETA

Do you see an error in this page? Do you have an interesting use case, example or edge case people should know about? Share your knowledge and help people who are reading this page! (Comments are moderated; for support, please contact Fastly support)