Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop logging varnish_id. #367

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Stop logging varnish_id. #367

wants to merge 1 commit into from

Conversation

sengi
Copy link
Contributor

@sengi sengi commented Jul 15, 2023

I can't find any evidence of this ever having been used, and it gives incorrect results because it throws away all but one of the X-Varnish headers. Any request that's reached Router would have at least two of them.

It probably made sense back when we ran our own Varnish and before we had Fastly, when these IDs would have corresponded to request log lines in Varnish.

@sengi sengi force-pushed the sengi/rm-varnish-cruft branch 2 times, most recently from 9fdd099 to 5bcc17f Compare July 22, 2023 16:10
Base automatically changed from sengi/fix-tests to main July 24, 2023 11:12
This field appears to have been added speculatively, way back in pre-Fastly
days when there was only our own Varnish in front of Router.

I couldn't find any evidence of us ever having used this field, plus
it gives incorrect results behind Fastly since it assumes there's at
most one X-Varnish header on the request, whereas there are always [at
least two] because of [the way Fastly works].

[at least two]: https://developer.fastly.com/reference/http/http-headers/X-Varnish/
[the way Fastly works]: https://developer.fastly.com/learning/vcl/using/#the-vcl-request-lifecycle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant