
Content-Length can describe compressed transfer bytes rather than the expanded file
A response’s Content-Length describes the length of its HTTP message content when that field applies. If content coding such as gzip is used, that can differ from the size of the expanded file an application reads. Comparing the two numbers without noticing compression can produce a false corruption warning.
Read the guide

