gildas-lormeau / single-file-core

GNU Affero General Public License v3.0
25 stars 9 forks source link

Loading iframe as a single file #3

Closed masylum closed 4 months ago

masylum commented 4 months ago

Hello there! I have a question I couldn't figure out the answer: Can I use single-file-core to take the contents of an iframe and convert it into a single file? The use case is that I want to cache iframes in OPFS, so next time you load the page, you can see the contents of the iframe from OPFS (so it works offline). I'm currently using the single-file CLI to download the page on a background job, but if I could do this on the client it would be fantastic. Thanks in advance!

gildas-lormeau commented 4 months ago

Did you solve the issue yourself?