Proxy with chunked transfer encoding

I have an Express app server that responds with a chunked response (Transfer-Encoding: chunked). When I run that behind Caddy I don’t receive a chunked response but simply a response with neither the Transfer-Encoding: chunked not a Content-length header so that the browser offers me download the response as a file.

This is my Caddy config: {
  tls …/tls_config/ …/tls_config/

  proxy / localhost:3000 {
    except /assets /engines-dist

  rewrite /mweb {
    r  (.*)
    to {1}

  root dist/

Shouldn’t Caddy respond with a chunked response transparently when the upstream server responds with one?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.