New configuration option to remove Fly injected headers

If you are building a platform on top of Fly and have your own load balancer behind fly-proxy that already adds response headers like Via, or you just want to keep HTTP responses clean of Fly injected headers, there is a new configuration option for you to remove such headers from HTTP responses.

You can set it like this:

[services.ports.http_options.response]
  pristine = true

or

[http_service.http_options.response]
  pristine = true

The option will prevent the proxy from adding or modifying the following response headers: Server, Via, Fly-Request-Id and Fly-Cache-Status.

If you send flyio-debug: doit request header, the response will contain debug information even if this option is set.

9 Likes

When assets are served via Fly Proxy ([[statics]]), the “Fly-Cache-Status” header remains visible. Is this intended? How to hide or rename it?

1 Like

Hey @gskierk

Nope. Looks like a bug. I’ll take a look.

1 Like

Forgot to mention that this should be fixed now.