This is only true because DEFLATE is very old---it handles duplicates well but ignores everything else---it doesn't even handle simple sequences like `00 01 02 ... ff`. Modern browsers support Brotli as an additional content encoding, and it can actually detect and handle such cases better. Of course such modelling can be done as a preprocessing step as well, PNG notably uses filtering in addition to DEFLATE.