Skip to content

MIME typeエラーでサイトが崩れる(Refused to apply style from … because its MIME type (‘text/html’) is not a supported stylesheet MIME)

black flat screen computer monitor

サイトが崩れた際にブラウザのコンソールを確認すると、「Refused to apply style from … because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.」というエラーメッセージが表示されることがあります。これは、何らかの理由でCSSのパスが変更された可能性を示しています。

このエラーの解決方法はcssのパスを修正することですが、WordPressの場合は全てのキャッシュを削除するとエラーは修正されます。

最終更新日: 2025-12-05

この記事は役に立ちましたか?

前へ...

PageSpeed Insightsの「リンクに識別可能な名前が指定されていません」を修正する方法

次へ...

Warning: The magic method Predic_Widget::__wakeup() must have public visibility in というエラーについて