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

Preserve headers of original response #205

Open
sevdog opened this issue Jul 27, 2023 · 0 comments
Open

Preserve headers of original response #205

sevdog opened this issue Jul 27, 2023 · 0 comments

Comments

@sevdog
Copy link
Contributor

sevdog commented Jul 27, 2023

When using nginx.XAccelRedirectMiddleware any header which was originally set on the response is lost when the XAccelRedirectResponse 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.

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

No branches or pull requests

1 participant