Resource Interpreted as Image But Transferred with Mime Type Text/HTML - Magento

Resource interpreted as Image but transferred with MIME type text/html error

Your issue is on this line:

RewriteCond %{REQUEST_URI} !^/offline\.php$
RewriteRule ^(.*)$ offline\.php [L]

The above tells that anything not start with /offline.php will be redirected to offline.php which includes image.

You can fix it by changing it into:

RewriteCond %{REQUEST_URI} !^/(offline\.php|images/offline\.png)$
RewriteRule ^(.*)$ offline\.php [L]

Resource interpreted as Image but transferred with MIME type text/html error

Your issue is on this line:

RewriteCond %{REQUEST_URI} !^/offline\.php$
RewriteRule ^(.*)$ offline\.php [L]

The above tells that anything not start with /offline.php will be redirected to offline.php which includes image.

You can fix it by changing it into:

RewriteCond %{REQUEST_URI} !^/(offline\.php|images/offline\.png)$
RewriteRule ^(.*)$ offline\.php [L]

Resource interpreted as other but transferred with MIME type text/javascript?

The most common way to get the error is with the following code:

<img src="" class="blah" />

A blank url is a shortcut for the current page url, so a duplicate request is made which returns content type html. The browser is expecting an image, but instead gets html.

Resource interpreted as stylesheet but transferred with MIME type text/html

Create an .htaccess file into your root folder (or update the existing one) with this line inside

AddType text/css .css 

this will tell apache to send the right content-type header for .css file

Chrome says Resource interpreted as script but transferred with MIME type text/plain., what gives?

It means that the server is sending a Javascript HTTP response with

Content-Type: text/plain

You need to configure the server to send a JavaScript response with

Content-Type: application/javascript


Related Topics



Leave a reply



Submit