Wraps its inner Route with caching support using the given spray.caching.Cache implementation and in-scope keyer function.
Wraps its inner Route with caching support using the given spray.caching.Cache implementation and in-scope keyer function. Note that routes producing streaming responses cannot be wrapped with this directive. Route responses other than HttpResponse or Rejections trigger a "500 Internal Server Error" response.
Wraps its inner Route with caching support using the given spray.caching.Cache implementation and the in-scope keyer function.
Passes only requests to the inner route that explicitly forbid caching with a Cache-Control
header with either
a no-cache
or max-age=0
setting.