req.max_stale_if_error

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

Available in all subroutines.

The maximum stale age that is acceptable for a particular request.

beresp.stale_if_error limits the maximum stale age for each object. For example, if beresp.stale_if_error for an object is set to one hour, but req.max_stale_if_error is set to 10 minutes, 10 minutes is the maximum stale age for that particular request. If beresp.stale_if_error for an object is set to 10 minutes, but req.max_stale_if_error is set to one hour, 10 minutes is the maximum stale age for that particular request.

User contributed notes

We welcome comments that add use cases, ideas, tips, and caveats. All comments will be moderated before publication. To post support questions, visit our support center and we'll find you the help you need.