Conditionally serving different content based on header in initial backend response


1 comment

  • Cassandra Dixon

    Hi Jonathan,

    An option that can help with your scenario would be to do a redirect based on the header. This can be done in the app or with custom VCL.

    For instance, in the app

    For the location header you can have it be the following:

    Source : "" req.http.X-Dirname "/index.html"

    Comment actions Permalink

Please sign in to leave a comment.