nginx err_content_length_mismatch

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;
}

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326490966&siteId=291194637