ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

JS Mime Type

April 08, 2009 7:30pm

Subscribe [2]
  • #1 / Apr 08, 2009 7:30pm

    mschoening

    71 posts

    Hey guys,
    I am having some trouble with some mime types (js and css mainly). I have a js embedded like so in EE:

    [removed][removed]

    Just to let you know I have modified the inputs in the CP so that {homepage} just outputs the domain name.

    I always get this message:

    Resource interpreted as other but transferred with MIME type application/x-javascript.

    However I tried using the same code for a plain .html version (excluding EE) and everything works fine and I get no mime type errors…

    Thanks,
    Max

    P.S: I’m using ExpressionEngine 1.6.7 Build:  20090320

  • #2 / Apr 08, 2009 7:40pm

    Greg Aker

    6022 posts

    Sorry, but I"m not following you here.  Where exactly are you receiving this error, on the front end or the control panel?

  • #3 / Apr 08, 2009 7:43pm

    mschoening

    71 posts

    Wow quick answer. Sorry for not making it clear. I am getting this in the Safari Web Inspector…

  • #4 / Apr 08, 2009 7:47pm

    Greg Aker

    6022 posts

    So is this a template or in the control panel?  If it’s a front end template, can you give us a link to it?

    -greg

  • #5 / Apr 08, 2009 7:50pm

    mschoening

    71 posts

    Hey,
    here is a link to the page: http://www.frecuencies.com/new and yes it is a template. However the JS file is not a JS template by EE but just a plain JS file! To insert the script I used the line of code shown above.

    If I copy the source code of the generated template and then save it as a html file and visit it I don’t get that error.

    Thanks,
    Max

  • #6 / Apr 08, 2009 8:48pm

    Greg Aker

    6022 posts

    Sorry, but I am not seeing the error. Specifically what file are you getting the strange headers on?  The functions.js file returns application/x-javascript ..  I have the jquery cached in my browser since you are pulling it from Google, but if I dump my cache, it loads fine.

  • #7 / Apr 08, 2009 10:29pm

    mschoening

    71 posts

    Really? That’s weird. Which Safari version are you using? It is the functions.js file that returns the weird mime-type! Maybe it’s Safari 4?

    Thanks for your help anyways! Your support rocks!

    Cheers,
    Max

  • #8 / Apr 09, 2009 1:37am

    John Henry Donovan

    12339 posts

    mschoening,

    I can also confirm correct MIME type using Firefox 3. I will close this one for now but if you run into any more problems, please feel free to start a new thread.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases