Worker to pre-render site?

I am trying to get a worker to fetch content from a website, and send HTML in response. Effectively static site generation or pre rendering the content, would this be possible?
Was this page helpful?