this is what you are looking for i believe (web archive format)
https://en.wikipedia.org/wiki/WARC_(file_format)?oldformat=t...
It's a great format for the problem it solves, but if browsers supported offline-only files the container format wouldn't (and shouldn't) need to be that complicated.