After going through the base drupal 8.0.1 install which worked fine, CSS was being applied to those pages. Now no CSS is loading. I've tried the typical and minimal install and both do this.

When i go to http://10.1.1.130/drupal/user/1 I get an error in the console in IE/Chrome and FF, each browser error is different but basically says "Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://10.1.1.130/drupal/user/1"."

In chrome when i look at the network tab i see the one css file get a 200 success code.

In IIS i've checked my MIME types and CSS is set to text/css

Has anybody experienced this on a fresh install before? any advice would be much appreciated.

Thanks,

Comments

dsfx’s picture

For the solution that i used view this thread.
https://www.drupal.org/node/2622026

in short:I'm running drupal 8.0.1 in IIS 8.5 Server2012.

This is the solution that worked for me. In drupal go to configuration > Performance > Uncheck Aggregate CSS & Javascript.

kailashgajara’s picture

@dsfx: Thank you so much. 2-year-old comment still helped me today. This worked for me.

defigo’s picture

This was driving me nuts

dlaufer’s picture

drush -y config-set system.performance css.preprocess 0 
drush -y config-set system.performance js.preprocess 0

then it worked for me on my local (where I was only having this problem)

aswathyajish’s picture

This worked for me.

pasan.gamage’s picture

Thanks for this.

I did everything relating to public folder configuration and permissions, also had the local settings and service files set to disable caching.

But none of that mattered, all it needed were the above drush commands.

Thanks Daniel !