Edge Computing with Cloudflare Workers
Introducing the HTMLRewriter API to Cloudflare Workers

Introducing the HTMLRewriter API to Cloudflare Workers

11/28/2019 · Rita Kozlov

What this post added

Introduced the GA release of the HTMLRewriter API for Cloudflare Workers. This API provides a streaming parser for manipulating HTML content directly at the edge, enabling dynamic applications and edge-side JAMstack architectures. It offers a jQuery-like experience for DOM manipulation using selectors and handlers, allowing for URL rewrites, content customization, and reducing origin load and client-side bloat. The post details an example of rewriting URLs and discusses the benefits of edge-side DOM modifications over client-side updates.

Read the original post ↗