Nginx has been configured for a while. Recently, I found that some pictures could not be opened using mobile phone tests. I used chrome to access the prompt err_content_length_mismatch
It turns out that when gzip compression is enabled, the browser will interrupt the connection when it detects that the resource size is inconsistent
After looking for a lot of information, the problem of disabling the buffer proxy was finally solved.
location /{ proxy_buffering off; }