This content was generated on the server and is present in the raw HTML response body.
Because Cloudflare receives this fully rendered HTML from the Worker, it can convert the entire content to markdown. No JavaScript execution is needed on the client side.
// Cloudflare Worker - SSR
export default {
async fetch(request) {
const html = `<h1>Server-Side Rendered Page</h1>
<p>All content lives here in the HTTP response body.</p>`;
return new Response(html, {
headers: { "Content-Type": "text/html" },
});
},
};