Hi Sebastian,
In IPWB (
https://github.com/oduwsdl/ipwb) we perform dechinking of the chunked responses before pushing them to the IPFS (a content-addressable file system) to leverage deduplication benefits. When we do that, we make necessary modifications in corresponding headers to make sure the archival replay behaves properly. However, in pour case we are throwing the original information away as we are not using WARCs for replay, but ingesting WARC records to populate IPFS for replay. If we can agree on a way to preserve this information, we will be happy to adopt to it in IPWB.
As far as I know X-Archive-Orig-* headers are replay specific. They do not exist in WARC records, but added later at the replay time. While there is nothing stopping us from utilizing that style of headers, I wonder current archival replay systems (such as Open Wayback and PyWB) will relay them as X-Archive-Orig-X-Archive-Orig-* headers instead (I might be wrong here). We can perhaps think of a different and more descriptive naming for situations like this (for example, X-Capture-Orig-* or X-WARC-Transform-Orig-*).
WARC file allow a means to store variants of a record and associate them, so in theory it is possible to have one record in the original form and another one that is canonicalized from it. However, this will lose the deduplication benefit.
IIPC's slack has a #warc channel where we discuss on the WARC specifications. We had some conversation around HTTP2 recently, should we preserve the original binary bytes as they arrive or the post-processed data. I think you might want to discuss this transformation matter there and see what others have to say about it.
Best,
--
Department of Computer Science
Old Dominion University
Norfolk VA 23529