Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use gh-pages branch and server js with correct mime-type #3

Open
TuckerWhitehouse opened this issue Mar 28, 2013 · 3 comments
Open
Labels
enhancement Improvement or suggestion

Comments

@TuckerWhitehouse
Copy link
Contributor

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.

@rdebeasi
Copy link

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! :)

@rdebeasi
Copy link

cdnJS might be a good place to host this library: https://github.com/cdnjs/cdnjs

@TuckerWhitehouse
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement or suggestion
Projects
None yet
Development

No branches or pull requests

2 participants