---
title: req.max_stale_while_revalidate
summary: null
url: >-
  https://www.fastly.com/documentation/reference/vcl/variables/server/req-max-stale-while-revalidate
---

**Type:** RTIME  
**Access:** can be read and set, but not unset

**Available in:** all subroutines

Same as `req.max_stale_if_error` except controls the maximum stale age for 
stale while revalidate functionality.

If an object's TTL has expired and it is eligible to be served stale 
and to be served stale while revalidating, stale while revalidate takes 
precedence.
