Incorrect charset on Microsoft’s Ajax CDN #1207

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

Comments

Projects
None yet
4 participants

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
Collaborator

jzaefferer commented Jul 10, 2014

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

jimaek referenced this issue in jquery-validation/validation-content Jul 10, 2014

Closed

Added jsDelivr #8

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.

jzaefferer closed this Jun 28, 2015

jzaefferer reopened this Jun 28, 2015

Owner

staabm commented Feb 5, 2016

We already link both cdns in the docs. Closing.

staabm closed this Feb 5, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment