On Jun 5, 2008, at 1053AM, Wade Preston Shearer wrote:

I have javascript files that are being served incorrectly with the MIME type text/html and I cannot figure out why.

I am linking to them like this:

<script type="text/javascript" language="javascript" src="/path/to/ file/file.js"></script>


Why would this be happening?

First thing to check is that you don't have an AddType (http://httpd.apache.org/docs/2.0/mod/mod_mime.html#addtype ) directive telling apache to serve .js as .html. Be sure to check both your .htaccess and your httpd.conf.

Brady


_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to