Home / Companies / Cloudflare / Blog / Post Details
Content Deep Dive

Cloudflare Fonts: enhancing website font privacy and speed

Blog post from Cloudflare

Post Details
Company
Date Published
Author
Matt Bullock, William Woodhead
Word Count
1,395
Language
English
Hacker News Points
17
Summary

Cloudflare is introducing a new feature called Cloudflare Fonts that allows websites to serve Google fonts from their own domain instead of using Google servers, improving both data privacy and website speed. This is achieved by rewriting the HTML as it passes through Cloudflare's global network, embedding the CSS response, performing font URL transformations within the embedded CSS, and caching these modified responses in Cloudflare's infrastructure. The new module called ROFL (Response Overseer for FL), written entirely in Rust, powers various Cloudflare products that need to alter HTML as it streams and allows for fast and safe HTML rewrites. Cloudflare Fonts will be available to all Cloudflare customers in October.