How to link files directly from Github (

The great service RawGit was already mentioned, but I’ll throw another into the ring:


  • Lets you link to specific commits, as well as auto-get the latest (aka master)
  • Incurs no damage from high traffic volumes; RawGit asks that it’s links be only used during development, where as GitCDN give you access to the latest version, without the danger of the servers exploding
  • Give you the option of auto minifying your HTML, CSS and JavaScript, or serving it as written (
  • Adds compression (GZip)
  • Adds all the correct headers (Content-Type, cache-control, e-tag, etc)

Full disclosure, I’m a project maintainer at

This service has been shuttered due to Heroku’s policy change to remove all free tiers.

Leave a Comment