-
Hello, I have a quick question. Is it somehow possible to save a html of the initial request? Thanks in advance, peace. |
Beta Was this translation helpful? Give feedback.
Answered by
adamraine
Apr 6, 2022
Replies: 1 comment 1 reply
-
We do save the html content for the main document, but this isn't the initial request if there were any redirects. You should be able to get the html using the node api: const {artifacts} = await lighthouse(url);
fs.writeFileSync('main.html', artifacts.MainDocumentContent); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
plesiecki
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We do save the html content for the main document, but this isn't the initial request if there were any redirects.
You should be able to get the html using the node api: