Hacker News new | ask | show | jobs
by jchook 815 days ago
Hm, very interesting, especially for bookmarking/archiving.

I'm curious, why not use the MHTML standard for this?

- AFAIK data URIs have practical length limits that vary per browser. MHTML would enable bundling larger files such as video.

- MHTML would avoid transforming meaningful relative URLs into opaque data URIs in the HTML attributes.

- MHTML is supported by most major browsers in some way (either natively in Chrome or with an extension in Safari, etc).

- MIME defines a standard for putting pure binary data into document parts, so it could avoid the 33% size inflation from base64 encoding. That said, I do not know if the `binary` Content-Transfer-Encoding is widely supported.

2 comments

MHTML support is planned, there's a couple of other problems that need to be resolved first, but it's a good format for archiving, been requested many times
Thanks for the reply. Very exciting. I would love to see MHTML support on this.
>MHTML is supported by most major browsers in some way

Firefox? What about mobile versions of browsers?

We should submit a PR