Media sync behind Caddy – Error 303 when downloading media, upload works fine

I’m having the exact same issue as another user in a closed post from May-June (sorry, the forum wouldn’t let me link to it)

My caddy config for this server (very minimal with default anki server port):

domain.domain.com {
  reverse_proxy localhost:27701
}

Sync works for everything except media download on Mac, Linux and Android clients, Media upload works fine. For downloads, I get the same HttpError 303 “stream failure” as with the previous post when trying to sync media on a computer.

Things I tried:

  1. Connecting directly to the server:port in local network: This works and it’s how I’ve been doing it, but would like to use the domain and proxy.
  2. As another user suggested, increase request_body size and timeouts, no good

I’m a little puzzled as to what might be different about the media sync request than the rest, because the others work. Would love some help and will post here if I figure it out eventually

The size, perhaps. Caddy’s support people might be able to offer more insight.