Old docker discarded the compressed bits but kept some metadata about the the so it can at least recreate the tar.
It also recreated the manifest o push.
(As others said, compression is deterministic for the same algorithm, parameters and input data)