I own the domain penkov.id.au. I host a blog using github, with an A record for the subdomain michael.penkov.id.au
pointing to the github pages server (204.232.175.
Here's what I heard from github support:
The A record pointing to 204.232.175.78 is what's causing the 302 redirect.
Replacing the A record with a CNAME (pointing to mpenkov.github.com) in my DNS settings fixed the problem.
For reference, here's what my DNS record looks like now:
misha@misha-antec:~$ dig michael.penkov.id.au +nocomments +nocmd +nostats
; <<>> DiG 9.8.1-P1 <<>> michael.penkov.id.au +nocomments +nocmd +nostats
;; global options: +cmd
;michael.penkov.id.au. IN A
michael.penkov.id.au. 85536 IN CNAME mpenkov.github.com.
mpenkov.github.com. 2736 IN CNAME github.map.fastly.net.
github.map.fastly.net. 25 IN A 103.245.222.133