
795: Hosting Private Fonts on the Edge With Cloudflare
About this episode
Scott and Wes dish out the intricacies of hosting private fonts using Cloudflare Pages. They explore the challenges of font security, the benefits of a font server, and the nuances of caching and whitelisting to keep your fonts secure and efficient.
Show Notes 00:00 Welcome to Syntax!
01:53 Behind the Code: Brought to you by Sentry.io.
03:12 The problem with hosting fonts. Scott’s Fonts.
05:42 The solution, a font server with Cloudflare Pages.
09:37 Utilizing a Key Value Store.
10:53 Storing a whitelist.
13:42 Why not just use a bucket? Check out the code.
15:24 Should whitelisting be done in JavaScript or cores?
17:23 How do you cache to multiple origins?
18:15 Multiple URLs in an allow origin.
19:17 Font security and foundry challenges.
21:43 Moving Domains on Cloudflare.
Check out the font Syntax uses! MD-IO.
Hit us up on Socials! Syntax: X Instagram Tiktok LinkedIn Threads
Wes: X Instagram Tiktok LinkedIn Threads
Scott: X Instagram Tiktok LinkedIn Threads
Randy: X Instagram YouTube Threads
More from Syntax - Tasty Web Development Treats
Scott and Wes get into closing the gap between your taste and your skills, with tips on design inspiration, snappier animations and easing. They also share an entry-level setup for recording video les…
Scott and CJ dig into Exact, Expo’s new Rust-based runtime that takes one codebase to web, iOS, macOS and Linux with no React Native involved, plus Bombadil’s property-based testing for web UIs. They…
Scott and Wes sit down with Michael Arnaldi to dig into Effect v4 and why guardrails matter now that AI agents are writing so much of our code. They discuss going zero dependencies, a 5x smaller bundl…
Scott and Wes sit down with GitHub’s Kyle Daigle to ask what the hell is going on with GitHub: the downtime, the agent traffic spike, and the infrastructure overhaul decoupling storage from compute. P…
Wes, Scott, and CJ are back with two weeks of news: Reddit is forcing everyone to log in, r/opensource bans anything AI, and CSS-Tricks is independent again. Plus Anomaly's Hex dictation app, Mitchell…