By using a custom domain for your GitHub page you can utilize CloudFlare to make your site secure and faster for your visitors, for free. I will also show you some more features that CloudFlare has to offer.
CloudFlare has already written an excellent post on their blog on how to use GitHub and CloudFlare together to enable SSL/HTTPS and strict caching of static content, see Secure and fast GitHub Pages with CloudFlare.
However, CloudFlare has more to offer than just SSL/HTTPS and strict caching. Below are some examples.
Auto minify static content
Domain Name System (DNS)
CloudFlare gives you a complete Domain Name System for free which I find very convenient. I mainly use it for subdomains besides hosting this site. It allows you to use A, AAAA, CNAME, MX, LOC, SRV, SPF, TXT and NS records to suit your needs.
I had to setup a wildcard subdomain pointing to one of my networks which had a dynamic IP address. The issue was that my dynamic dns updater only allowed to update an A record in the DNS and not any CNAME records.
I solved this by creating an A record, i.e. subdomain.marcus-e.se, that pointed to my network IP address and then creating a wildcard CNAME record, i.e. *.subdomain.marcus-e.se, that pointed to my A record (subdomain.marcus-e.se). With this I can let my dynamic dns updater update the A record and I’ll still be able to access everything under *.subdomain.marcus-e.se.
CloudFlare gives you a lot of security and speed for your visitors for free and makes your life easier. I highly recommend it. Please inspect this site using Chrome dev tools or similar and have a look what CloudFlare has given my site in comparison with the source code.