Re: Javascript mime type
Tim Williams <[email protected]>
| Newsgroups | gmane.text.xml.forrest.devel |
|---|---|
| Message-ID | <CAG_bHoze05DwDdWK89RVHdrp+4xQq7BxJd=6kxLTypViZDPOiA@mail.gmail.com> |
On Thu, Jan 24, 2013 at 4:32 PM, Tim Williams <[email protected]> wrote: > On Thu, Jan 24, 2013 at 4:25 PM, Sjur Moshagen <[email protected]> wrote: >> According to this page: http://stackoverflow.com/questions/4101394/javascript-mime-type >> and many others on the net, application/javascript is the correct answer, but not accepted by MS IE ≤ 8. Which leaves us with text/javascript. But several places (including the above) argues that leaving it empty is fine, and the most compatible. I have no strong opinions, though, just that the present mime type definitely is wrong :) > > I'd go with text/javascript - it's a reasonable default. It's worth > noting that we serve it as 'application/javascript' because that's the > default mime-type mapping for httpd[1]. Ooops.. dangling pronoun:( "we" == forrest.apache.org :) --tim