Hi I've been looking at decreasing page load times, and as part of this I'm revisiting a decision that was made when we started using HAproxy back in the 1.3.x era. At the time, HAproxy had no support for HTTP keep-alive, and we needed to use "option forwardfor". As a result, we added "option httpclose", as suggested by the following paragraph:
It is important to note that as long as HAProxy does not support keep-alive connections, only the first request of a connection will receive the header. For this reason, it is important to ensure that "option httpclose" is set when using this option. We are currently using 1.4.8, which has (as far as I understand) support for client-side HTTP keep-alive, yet the paragraph about using "option httpclose" with "option forwardfor" is untouched in the 1.4 documentation. So to get to my actual question, with 1.4.8, can I remove "option httpclose", keep "option forwardfor" and still see the X-Forwarded-For header added to each request made? Or does HAproxy still only analyze the first request when client-side HTTP keep-alive is being used? Graeme