I am using the http_redirect module to automatically upgrade HTTP connections to HTTPS on a single port, but as far as I can see there is no way to set headers and I would prefer that the redirect is not cached.
My current solution is to simply modify the built-in response code to 307 Temporary Redirect and build with xcaddy, but I was hoping you'd be open to either making 307 the default, or keeping the current default with an option to either add custom headers or specify the redirect code as with a normal redirect.
If there is a better way to approach this I would be really grateful if you could point me in the right direction - And thank you for your work on Caddy, I switched from NGINX and haven't looked back
Hello,
I am using the http_redirect module to automatically upgrade HTTP connections to HTTPS on a single port, but as far as I can see there is no way to set headers and I would prefer that the redirect is not cached.
My current solution is to simply modify the built-in response code to 307 Temporary Redirect and build with xcaddy, but I was hoping you'd be open to either making 307 the default, or keeping the current default with an option to either add custom headers or specify the redirect code as with a normal redirect.
If there is a better way to approach this I would be really grateful if you could point me in the right direction - And thank you for your work on Caddy, I switched from NGINX and haven't looked back
Cheers!