I'm interested in the semantics of application/javascript MIME types compared to text/javascript .
Obviously, one should be executed, and the other should be just text.
I see application/javascript when viewing the headers of an external .js load.
HTTP/1.1 200 OK Date: Mon, 13 Jan 2014 18:32:58 GMT Server: Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/0.9.8e-fips-rhel5 Content-Type: application/javascript Content-Length: 856 keep-alive: timeout=5, max=59 Via: 1.1 (jetty) Accept-Ranges: bytes
If this application/javascript will execute javascript, why don't we use
<script type="application/javascript"> </script>
And vice versa, why is the external js load not text/javascript ?
javascript mime-types
sircapsalot Jan 13 '14 at 18:41 2014-01-13 18:41
source share