What is an appropriate content-type header for JavaScript files?

Viewed 63091

I am delivering a JS response from a PHP file. When setting the Content-Type header which value should I use, application/javascript or text/javascript?

What’s the difference between the two?

3 Answers
Related