Use gh-pages branch and server js with correct mime-type
Opened this issue · 3 comments
When serving a javascript file from the github.com raw url such as http://raw.github.com/browserstate/ajaxify/master/ajaxify-html5.js, it gets sent as a plain text mime-type, which cannot be used as a script in internet explorer (or at least causes issues), so it may be beneficial to some users to keep a mirror of this project on both the master branch, and gh-pages branch, and then the script could be loaded from here http://browserstate.github.com/ajaxify/ajaxify-html5.js with the correct mime-type.
It would be great if the files were served from a CDN such as CloudFlare instead of from GitHub. GitHub is not a CDN, and so it doesn't serve files with the HTTP headers that you'd want for good performance. In particular, a CDN would serve files with a far-future expires header. This StackOverflow thread has more info if you're interested.
Thanks for maintaining this awesome library! :)
cdnJS might be a good place to host this library: https://github.com/cdnjs/cdnjs
I actually use GitHub pages to host stuff, and then run CloudFlare on top of that but I agree that cdnjs would be a good choice.