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

Incorrect charset on Microsoft’s Ajax CDN #1207

Closed
Krinkle opened this issue Jul 10, 2014 · 4 comments
Closed

Incorrect charset on Microsoft’s Ajax CDN #1207

Krinkle opened this issue Jul 10, 2014 · 4 comments

Comments

@Krinkle
Copy link

Krinkle commented Jul 10, 2014

This file contains character encoding artifacts due to the server not sending the appropriate charset=utf-8 in the headers.

http://ajax.aspnetcdn.com/ajax/jquery.validate/1.13.0/jquery.validate.js

 * Copyright (c) 2014 Jörn Zaefferer

What it is sending:

Content-Type: application/x-javascript

What it should be sending:

Content-Type: application/x-javascript; charset=utf-8

Or:

Content-Type: text/javascript; charset=utf-8
@jimaek
Copy link

jimaek commented Jul 10, 2014

jsDelivr sends correct headers if you are interested http://cdn.jsdelivr.net/jquery.validation/1.13.0/jquery.validate.js

@jzaefferer
Copy link
Collaborator

@jimaek Could you send a PR against my validation-content repo to add the jsDelivr CDN?

@jimaek
Copy link

jimaek commented Jul 10, 2014

@jzaefferer Added, I tried to follow the same syntax as MS CDN. Let me know if there is anything missing :)
You can also use our API to pull the latest available versions to avoid manually updating the HTML.
We also support auto-updating, but your repo's format makes it a bit hard do implement it.

@staabm
Copy link
Member

staabm commented Feb 5, 2016

We already link both cdns in the docs. Closing.

@staabm staabm closed this as completed Feb 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants