Dear Team,
ajax.js line 177
if ((this.header('Content-type') || '').match(/^text\/javascript/i))
this.evalResponse();
}
I think it's not enough, because Apache uses another default content-type (application/x-javascript).
According to Anne's post (http://annevankesteren.nl/2005/02/javascript-mime-type) there is no standardized javascript content-type, and in Scripting Media Types Internet-Draft (http://www.websitedev.de/ietf/draft-hoehrmann-script-types-01.txt) there are some other content-type for (java/ecma)scripts.
+-----------------------------------------------------+
| text/javascript | text/ecmascript |
| text/javascript1.0 | text/javascript1.1 |
| text/javascript1.2 | text/javascript1.3 |
| application/x-javascript | application/x-ecmascript |
| application/javascript | application/ecmascript |
+-----------------------------------------------------+
Of these types, this document defines the following:
* text/javascript
* text/ecmascript
* application/javascript
* application/ecmascript
Pff, what to do? :)
Sincerely,
Wiktor