Official image host for GitHub projects?

前端 未结 6 1663
忘了有多久
忘了有多久 2020-12-28 12:23

Whenever I need to include a picture in a GitHub project\'s README file I usually just stick it in a Screenshots folder and relatively link to it. However this unnecessarily

6条回答
  •  悲哀的现实
    2020-12-28 12:50

    Fastly is not an image host, it's a content delivery network. See their website and this CDN Planet entry.

    If you peek at the source code of the README.md page in the MMDrawerController repository, you'll notice that the image aren't initially stored at Fastly.net.

    Moreover, they're supposed to be served through standard http (ie. not https).

    The links your refer to are dynamically rewritten thanks to the Camo tool.

    This tool simplify routing images through an SSL host in order to prevent users from being warned by their browser about potential unsecure content as every GitHub.com content is being served over https.

提交回复
热议问题