13

Rack documentation says that

File servers support X-Cascade header

rack-mount says that

Rack::Mount supports Rack’s +X-Cascade+ convention

What is X-Cascade ? I could not find any documentation on X-Cascade.

Nick Vanderbilt
  • 36,724
  • 29
  • 83
  • 106

1 Answers1

17

The server will set the X-Cascade header to "pass" to continue to try other routes. This allows for multiple routes to be nested/stacked.

The general purpose of this is to pass the request on to other middlewares to handle the request if that specific handler doesn't handle it.

horseyguy
  • 29,455
  • 20
  • 103
  • 145
Mike Lewis
  • 63,433
  • 20
  • 141
  • 111