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

Javascript as new special shortcut #15

Open
LinusU opened this issue Jun 12, 2015 · 1 comment
Open

Javascript as new special shortcut #15

LinusU opened this issue Jun 12, 2015 · 1 comment
Assignees

Comments

@LinusU
Copy link

LinusU commented Jun 12, 2015

How about adding javascript as a new special shortcut that expands to the following.

['application/javascript', 'application/x-javascript', `text/javascript`]

Unfortunately there are still a few servers out in the wild that returns one of the two latter which breaks my script :(

Here are some info on how/when/why they were used: Difference between application/x-javascript and text/javascript content types @ StackOverflow

@dougwilson
Copy link
Contributor

Hi! So actually thinking about this for a bit, I think that at some point (would need a major version bump), just using extensions at all should mean "any type that maps to this extension", rather than what it means right now, which is "the most-preferred type that maps to this extension".

For now, we could potentially just add exceptions until we're ready to blanket it in the next major. I would say yes, we should make this exception and just apply it to js directly, rather than adding a new thing :)

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

No branches or pull requests

2 participants