3 ms·
Ask HN : Should I serve files from GitHub?
I'm writing a javascript library and I want people to have an easy access to it. Is it wrong to suggest to use GitHub as the file server? I assume they are under CDN but I don't know how to be sure. I also assume that it's not against their policy but I didn't find that information.
The idea comes from : http://docs.jquery.com/Downloading_jQuery#CDN_Hosted_jQuery
- tomh- 16y agoNo you shouldn't, most likely files in the repo are not under CDN due to the nature of it. They change frequently so there is no point to cache them.
- Popcorn 16y agoRepositories can go offline while they're being moved to a new server, not so good for your website. I would suggest putting it on Amazon S3.
- cmelbye 16y agoI wouldn't. Showing an image stored in a repository (using their raw URLs) is unbearably slow in most cases. If you've ever seen their post-update hook page, the help text always loads slow for me because it's just doing an AJAX request to the raw URL for the documentation that is stored in a repo.