IIS 7 and Above
Content-Length Error when IIS returns response with STATUS 302
Re: Content-Length Error when IIS returns response with STATUS 302
Jun 27, 2017 08:57 AM|Yuk Ding|LINK
You could enable the failed request tracing to figure out what's going on with the response header:
I notice the httpcompression will also effect the size of content size. So if you need to avoid the wrong value, try to disable the dynamic/static compression.