[UPHPU] javascript file being send with text/html header
Brady Mitchell
mydarb at gmail.com
Thu Jun 5 11:59:05 MDT 2008
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
More information about the UPHPU
mailing list