I've have changed mode from developer to production,then cleared cache,deployed but css and images are not showing . Image's status is 404 and stylesheet's Refused to apply style from because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

what should i do? Searched a lot but not didnt get any good result :(


Please try by running this command:

php bin/magento setup:static-content:deploy -f en_US

en_US please change it with your store country code.

  • Thank you for reply, but still not working.. :( Nov 20 '19 at 11:05
  • Try to apply production mode command: php bin/magento deploy:mode:set production
    – manoj pal
    Nov 26 '19 at 11:27

Recently had a very similar issue with a Magento 2 site. Managed to track down the issue to a very important .htaccess file missing in the pub/static folder on the server.

It's unclear how this file was mysteriously removed but re-adding this file from a clean Magento 2 installation rectified the issue.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.