Re:Web Vitals: essential metrics for a healthy site
by sickmate on Tuesday May 05, 2020 @10:41PM
(#23087453)
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-...
>If a request goes through multiple proxies, the IP addresses of each successive proxy is listed. This means, the right-most IP address is the IP address of the most recent proxy and the left-most IP address is the IP address of the originating client.
Re:Web Vitals: essential metrics for a healthy site
by jeroenhd on Tuesday May 05, 2020 @07:44PM
(#23086414)
I don't see why you would only have one of those headers. There are use cases for two proxies to operate (think a corporate proxy + your proxy, or a corporate proxy to a privoxy instance to your proxy, a corporate proxy connecting to a data-saving proxy, etc.). Some proxies like to add these headers by default. Duplicate headers are acceptable in HTTP, so this is all perfectly up to spec.
In this case, if your reverse proxy is adding its own header, it should be stripping away the other X-Forwarded-For headers if you so wish, or have the application pick the appropriate header if you wish to receive all of them. This sounds like a misconfiguration issue on your website to me.
Example log entry:
Is this expected behaviour?[1] https://web.dev/measure/