From what I've read, the MIME content-type text/javascript
is obsolete and has been superseded by application/javascript
. If that's the case, why does Google serve analytics.js as the former?
Just checking a site I own, and it also seems to be serving JS content as text/javascript
, too. (I just had to add AddOutputFilterByType DEFLATE text/javascript
to my .htaccess, because application/javascript
wasn't working.)
Is this just a case of IANA guidelines not really being adhered to in the real world?