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?
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?
According to IANA, on 2022-05-10, text/javascript should be used.
Who knows what it'll be in a year!