title: JavaScript content-type
body: <p>When I add JavaScript files to web pages, I have always done for example like this:</p>
  
  <pre><code>&lt;script type="text/javascript" src="/js/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
      // Custom script
  &lt;/script&gt;
  </code></pre>
  
  <p>But today I discovered in the response headers that JavaScript are actually served as <code>application/javascript</code>. Why is that? Is both correct? Or should I change one to the other? What's going on here?</p>