Why is ProgressEvent.lengthComputable false?

If lengthComputable is false within the XMLHttpRequestProgressEvent, that means the server never sent a Content-Length header in the response.

If you’re using nginx as a proxy server, this might be the culprit, especially if it’s not passing the Content-Length header from the upstream server through the proxy server to the browser.

Leave a Comment