Including the Trailer header field with responses that don't have Transfer-Encoding: chunked causes some (overly strict?) proxies to drop the response e.g. IBM Bluemix sends back a 502 top the client in this scenario, even though Node/Express responds with a 304.
I brought up the issue with the Express team and it was suggested that since Node strips out the body for a 304, it might also make sense to strip out the Trailer header from Node. See: expressjs/express#2749
Interested what you all think about it.
Including the
Trailerheader field with responses that don't haveTransfer-Encoding: chunkedcauses some (overly strict?) proxies to drop the response e.g. IBM Bluemix sends back a 502 top the client in this scenario, even though Node/Express responds with a 304.I brought up the issue with the Express team and it was suggested that since Node strips out the body for a 304, it might also make sense to strip out the
Trailerheader from Node. See: expressjs/express#2749Interested what you all think about it.