Conditionally serving different content based on header in initial backend response

Comments

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 : "http://example.com/" req.http.X-Dirname "/index.html"

Please sign in to leave a comment.