Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IE is claiming not to recognize the text/javascript MIME type

We have been developing a Ruby on Rails application. We have recently re-deployed this application behind an Apache proxy which uses HTTPS.

Since we've done this one of our users gets sent to the following page when trying to use the app: http://shell.windows.com/fileassoc/mimeassoc.asp?mime=text/javascript, which says:

MIME Type: text/javascript
Description: UnKnown
Windows does not recognize this MIME type. 

Does anyone know under what circumstances IE would claim not to know what to do with a text/javascript file? It's just this one user so far.

Windows 7 / IE 8 and XPsp2 / IE8

EDIT Adding the full HTTP response that IE barfs on

HTTP/1.1 200 OK
Date: Mon, 24 Oct 2011 00:31:27 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.9
ETag: "a6d7d64e3ca943eabc73db920baa7d76"
Cache-Control: max-age=0, private, must-revalidate
X-UA-Compatible: IE=Edge,chrome=1
X-Runtime: 0.003257
Status: 200
Content-Type: text/javascript; charset=utf-8
Connection: close

window.location.href='https://xx.xx.org.au/AED/sessions/new'
like image 374
AndrewR Avatar asked Oct 18 '11 04:10

AndrewR


People also ask

Why JavaScript is not working in Internet Explorer?

Internet Explorer When the "Internet Options" window opens, select the Security tab. On the "Security" tab, make sure the Internet zone is selected, and then click on the "Custom level..." button. In the Security Settings – Internet Zone dialog box, click Enable for Active Scripting in the Scripting section.

Does IE 11 support JavaScript?

Internet Explorer 11 doesn't support JavaScript versions later than ES5. If you want to use the syntax and features of ECMAScript 2015 or later, or TypeScript, you have two options as described in this article. You can also combine these two techniques.

What is MIME data type?

A media type (also known as a Multipurpose Internet Mail Extensions or MIME type) indicates the nature and format of a document, file, or assortment of bytes. MIME types are defined and standardized in IETF's RFC 6838.


1 Answers

You should try application/javascript.

like image 175
xavierm02 Avatar answered Oct 02 '22 14:10

xavierm02