For Workers & Pages, what is the name of the domain?
Not relevant
What is the issue or error you’re encountering
Due to the requirements we have, it is needed to fetch something from the (origin) response HTML and make some conditional decisions made on that value. In this case it is the value of a meta tag in the HTML.
What steps have you taken to resolve the issue?
Anyway, I cannot see another option (if I use HTMLRewriter) but to run the thing twice. In itself, this works fine, I can successfully run it twice, however, I wonder about the performance impact. How fast is the HTMLRewriter (for example, compared to node-html-parser)? Are there any other known issues with running it multiple times?