Open sevdog opened 11 months ago
When using nginx.XAccelRedirectMiddleware any header which was originally set on the response is lost when the XAccelRedirectResponse is returned.
nginx.XAccelRedirectMiddleware
XAccelRedirectResponse
If any cache related header is meant to be set on per-request basis (ie: Etag) it is lost.
Etag
This also happens if using XSendfileResponse/apache.XSendfileMiddleware (since they use the same logic).
XSendfileResponse
apache.XSendfileMiddleware
It would be nice to have some options to enable these middleware to copy headers from the original response.
When using
nginx.XAccelRedirectMiddleware
any header which was originally set on the response is lost when theXAccelRedirectResponse
is returned.If any cache related header is meant to be set on per-request basis (ie:
Etag
) it is lost.This also happens if using
XSendfileResponse
/apache.XSendfileMiddleware
(since they use the same logic).It would be nice to have some options to enable these middleware to copy headers from the original response.