Secure and fast GitHub Pages with CloudFlare
Jun 14, 2016Junade Ali
Summary
This post details the integration of Cloudflare's CDN and Universal SSL with GitHub Pages for static site hosting. It explains how to configure DNS records to point to GitHub Pages, use a CNAME file for custom domains, and leverage Cloudflare's 'Cache Everything' Page Rule to cache HTML directly from the CDN. It also covers enabling Universal SSL to provide HTTPS for custom domains, thereby enabling HTTP/2, and setting up Page Rules for enforcing HTTPS and redirecting non-www to www.