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

How to set the customized header for response? #172

Open
xmh0511 opened this issue Aug 1, 2024 · 4 comments
Open

How to set the customized header for response? #172

xmh0511 opened this issue Aug 1, 2024 · 4 comments

Comments

@xmh0511
Copy link

xmh0511 commented Aug 1, 2024

In caddy, for example, we can add some headers to response

example.com {
    header {
      Cache-Control "no-cache, no-store, must-revalidate"
   }
}

I didn't find a way to configure the header in rpxy. Moreover, how do I enable gzip for an application?

@junkurihara
Copy link
Owner

rpxy doesn't provide such functionality at this point.

In the current rpxy's design principle (as simple as possible), application-specific header fields including gzip for e2e compression should be controlled by backend applications. rpxy focuses not on the duty of web servers but on tasks of reverse proxy, e.g., TLS termination, routing requests to backend apps, etc.

@xmh0511
Copy link
Author

xmh0511 commented Aug 1, 2024

rpxy doesn't provide such functionality at this point.

In the current rpxy's design principle (as simple as possible), application-specific header fields including gzip for e2e compression should be controlled by backend applications. rpxy focuses not on the duty of web servers but on tasks of reverse proxy, e.g., TLS termination, routing requests to backend apps, etc.

AFAIK, nginx and caddy both support these functionalities. Does rpxy plan to support these functionalities the other alternatives has supported?

@junkurihara
Copy link
Owner

AFAIK, nginx and caddy both support these functionalities. Does rpxy plan to support these functionalities the other alternatives has supported?

If I need or get convinced, I (or other contributors) will do that.

@Gamerboy59
Copy link
Contributor

rpxy doesn't provide such functionality at this point.
In the current rpxy's design principle (as simple as possible), application-specific header fields including gzip for e2e compression should be controlled by backend applications. rpxy focuses not on the duty of web servers but on tasks of reverse proxy, e.g., TLS termination, routing requests to backend apps, etc.

AFAIK, nginx and caddy both support these functionalities. Does rpxy plan to support these functionalities the other alternatives has supported?

nginx and caddy are both webserver and not primarily reverse-proxies, thus I see this oos for rpxy.

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

3 participants