Friday, 19 July 2013

How to serve stale content in case no render is available

In order to enable this feature, an additional flag /serveStaleOnError has to be set below the/cache section:

dispatcher.any

/cache
 
  # Flag indicating whether the dispatcher should serve stale content if
  # no remote server is available.
  /serveStaleOnError "1"
Please note that only the following response codes are considered:
  • 502 - Bad Gateway
  • 503 - Service Unavailable
  • 504 - Gateway Timeout

No comments:

Post a Comment