HTTP integrity fields distinguish message content from the selected representation. A checksum you compute over a saved file has its own defined input bytes. Before comparing digest values, establish the algorithm, the covered scope and whether compression or partial delivery changed what was saved.
Specify the thing being hashed
An illustrative file may be delivered in compressed form and then expanded by the client. A digest of the compressed message and a digest of the expanded saved file need not be equal. That difference is not automatically corruption. The comparison becomes meaningful only when both sides describe the same byte sequence under the same named algorithm.
Keep integrity separate from origin trust
A matching digest can show that two covered byte sequences agree. It does not, by itself, establish that the publisher is the intended software developer or that the content is appropriate to install. A trustworthy download process still needs the correct source and version. Do not turn a successful byte comparison into a claim of universal app safety.
A partial response makes scope especially important: a digest covering the transferred portion cannot be compared as though it necessarily covered the complete representation. Label the requested range and the saved object before deciding which expected value is applicable.
Use a small reproducible record
For support, record the file name, exact byte count, algorithm and where the expected value came from. State whether the file was decompressed, combined from ranges or otherwise transformed before the calculation. Avoid a vague note such as “the checksum is different” without identifying which two objects were compared. Keep any account-specific payload private.
Respond to a real mismatch
If the publisher supplies an expected hash for a complete download and your equivalent complete file differs, retain the result and verify the intended version before proceeding. Repeatedly calculating hashes over different transformed copies will not resolve the identity question. The useful outcome is a clear chain from authoritative expected bytes to the actual local file, with transport-level integrity metadata labelled according to its own scope rather than substituted for a different check.
