I’m trying to troubleshoot some issues, and it would help me to know which backend (origin) server provided a response (i.e. by inspection of HTTP response headers).
I searched high and low in the Fastly docs, and eventually tried to set this response header:
resp.http.X-Origin = beresp.backend.name
However, I get a validation error:
beresp.backend.namenot accessible in method
Any hints about which variables are within scope for vcl_deliver that can provide info. about which backend responded? Or is this only possible to set on the backend itself (so that provides the header, rather than inserting it retrospectively)?
I could also really use a nice reference for what variables are available (and their scope) in general, if anyone has any nice guides / links that summarise it?
Please sign in to leave a comment.