It seems Safari supports HSTS and that github uses it. Their HTTP response contains the following header:
Strict-Transport-Security:max-age=31536000; includeSubdomains; preload
Thus, a browser that supports HSTS knows that in the foreseeable time this site should be visited only using https, and any attempts to use http will be automatically updated by the browser.
In addition to the base HSTS, which only works after the first visit to the github site, the preload directive is also added. This tells browser developers that github likes to be included in the preloaded HSTS list that comes with browsers, so the browser uses HSTS even if the site has never been visited before by the user. See HSTS Preloading for more information.
source share