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 withContent-Type: application/javascript
Related Topics
PHP Script to Log the Raw Data of Post
Use PHP to Check If Page Was Accessed with Ssl
Optimizing MySQL Fulltext Search
Php: Require Path Does Not Work for Cron Job
Uploading Image from Android to PHP Server
Php: How to Read a File Live That Is Constantly Being Written To
Force Download via Ajax and PHP
Echo 'String' While Every Long Loop Iteration (Flush() Not Working)
Mongodb: Benefit of Using Objectid VS a String Containing an Id
How to Select Year and Month from the Created_At Attributes of Database Table in Laravel 5.1
Make Woocommerce Checkout Phone Field Optional Based on Shipping Country
Laravel 4.2 Says My Application Is in Production. How to Turn This Off
Get the Text of the Selected Option Using PHP