Replies to GETs of data.js is Content-Type: text/plain
|
October 28, 2012, 01:22 AM
|
|
I just noticed that calling .../script/data.js returns:
Content-Type: text/plain; charset=utf-8
Is this by design?
I actually don't know what it is supposed to be, given that no one agrees if this is supposed to be "text/javascript" or "application/javascript". "text/plain" seems wrong, even if it is utf-8 -- the bytes returned must be preserved exactly as-is.
I'm no web development nerd, though. Mostly curious if this is on purpose.
[Later]
Ah, I see. Mostly a browser compatibility issue. No one uses the "correct" MIME-type. In fact, setting the type might be completely unnecessary now.
|
|
|
Team 23
October 28, 2012, 09:57 AM
|
|
I remember there being a decent reason back in 2006, probably some browser misbehaving. Should keep up back though, so this has been changed.
|
|
|