Representation consistency record
A stored video, the HTTP representation sent by a proxy and the bytes your downloader writes are not automatically identical. A text-oriented compression middleware can accidentally sit in front of a binary delivery route, while a client library may transparently decode the content it receives. This guide is distinct from the ordinary range-resume checks: the first prefix can be individually valid but belong to a different representation from the continuation. It also does not claim that AISwapLab currently compresses MP4 results this way. Inspect your own intermediary and client before attributing a corrupted joined file to generation quality.
What to do next
- 01
Record the representation at both ends
For a synthetic owned media fixture, compare the origin response, proxy response and downloader's saved bytes. Note Content-Encoding, Content-Length where present, range status and the count actually written. Do not assume a strong-looking filename or MIME type establishes identical bytes. Keep authentication and output identity fixed throughout the comparison. A client that decodes content automatically needs a documented policy for how its local resume offsets are calculated.
- 02
Test a continuation without writing blindly
Request a known next range through the same path and inspect its status and Content-Range before appending. Confirm that the representation and offset correspond to the saved prefix. If a full response is returned, use the separately reviewed restart path rather than concatenating it. If transformations changed, discard the ambiguous partial as a complete-deliverable candidate and obtain a clean transfer while the owned object remains available.
- 03
Correct the delivery path and verify the full result
Review whether automatic compression or other binary transformation is appropriate on your application's media route. Adjust only the path you control, preserving private cache and authorization rules. Retest a complete transfer and a deliberately interrupted continuation with the same synthetic file, then compare the reconstructed bytes with the fixture. Test the exact deployed client library settings rather than assuming a different command-line tool exercises the same decoding behavior.
A concrete example
Illustrative fixture: a downloader saves a prefix after a middleware layer has decoded one representation, then asks the proxy for a continuation using that local byte count while a different encoding path is selected. Appending the returned bytes creates a corrupt joined file even though the source image itself is valid. The team identifies the representation mismatch and retests a stable binary path. This is a proposed transfer test, not an observed AISwapLab outage, a compression benchmark or permission to expose private media through a public troubleshooting endpoint.
Representation consistency record
| Observation | Required match | If inconsistent |
|---|---|---|
| Saved prefix | Owned object and written representation | Do not call it complete |
| Continuation response | Compatible encoding and range | Do not append |
| Reconstructed fixture | Expected complete bytes | Fix controlled delivery path |
Before you call it ready
- The saved prefix and continuation use the same representation.
- Content-Encoding and actual written byte counts are inspected.
- A full or incompatible response is never blindly appended.
- A verified clean download is distinguished from a regenerated output.
When to stop or choose another method
Stop resuming an ambiguous partial when representation identity cannot be established. A plausible 206 status alone does not certify that the local prefix uses the same bytes. Keep the original task and avoid paid resubmission as a delivery workaround. Respect the private media deadline: correcting your proxy after a cloud object expires does not recreate its missing bytes or renew its lifetime.
