Warning: The stylesheet https://dan.hersam.com/css/white.css was loaded as CSS even though its MIME type, “text/plain”, is not “text/css”.
Some research revealed that apache uses a mime.types file which defines all of the types it knows about. If the type isn’t defined, it uses the DefaultType directive which is usually set to text/plain. To get rid of the error I simply had to add the following line.
You can also add the following line to httpd.conf or your .htaccess file
AddType text/css css
It’s strange that the browser didn’t pay attention to the <link> tag in my page, which includes the type.
<link href=”https://dan.hersam.com/css/stylesheet.css” rel=”stylesheet” type=”text/css”>