By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,868 Members | 1,974 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,868 IT Pros & Developers. It's quick & easy.

Mozilla shows the following warning while IE doesn't show any error.

P: n/a
The warning message is:

Warning: The stylesheet http://www.jewelrybyponce.com/popup/popup.css
was loaded as CSS even though its MIME type, "application/octet-stream",
is not "text/css".

What cause the problem? There is not "application/octet-stream" in the
html or css code...
Jul 20 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
nick wrote:
The warning message is:

Warning: The stylesheet http://www.jewelrybyponce.com/popup/popup.css
was loaded as CSS even though its MIME type, "application/octet-stream",
is not "text/css".

What cause the problem? There is not "application/octet-stream" in the
html or css code...


Ask your *hosting provider* to add the MIME type for css to mime.types
(if Apache) ie there should be a line:

text/css css
--
John MexIT: http://johnbokma.com/mexit/
personal page: http://johnbokma.com/
Experienced Perl programmer available: http://castleamber.com/
Happy Customers: http://castleamber.com/testimonials.html
Jul 20 '05 #2

P: n/a
On Mon, 14 Jun 2004 05:55:55 -0400, nick <nb***@removethis.hotmail.com>
wrote:
The warning message is:

Warning: The stylesheet http://www.jewelrybyponce.com/popup/popup.css
was loaded as CSS even though its MIME type, "application/octet-stream",
is not "text/css".

What cause the problem? There is not "application/octet-stream" in the
html or css code...

Your server is mis-serving the document. If you are on an Apache server,
add a document to your root directory named ".htaccess". In it write this:

AddType 'text/css; charset=UTF-8' .css

using the character set you are using, of course.

If it's not an Apache server, whoever runs your server must set the proper
MIME type for .css. If they are reluctant, change hosts. I'm not being
facetious here, I'm serious. There's absolutely no good reason for any
competent web host to serve .css as anything but text/css in this day and
age.
Jul 20 '05 #3

P: n/a
John Bokma wrote:
nick wrote:
The warning message is:

Warning: The stylesheet http://www.jewelrybyponce.com/popup/popup.css
was loaded as CSS even though its MIME type,
"application/octet-stream", is not "text/css".

What cause the problem? There is not "application/octet-stream" in the
html or css code...

Ask your *hosting provider* to add the MIME type for css to mime.types
(if Apache) ie there should be a line:

text/css css

Thanks, is there any serious problem if leave it along?
Jul 20 '05 #4

P: n/a
nick wrote:
John Bokma wrote:
nick wrote:
Warning: The stylesheet http://www.jewelrybyponce.com/popup/popup.css
was loaded as CSS even though its MIME type,
"application/octet-stream", is not "text/css".

In other words, it violated the standard. Well, at least it warns the
user.
text/css css
Thanks, is there any serious problem if leave it along?


Yes. The http protocol is unambiguous about this: the content type
header is definitive. If it claims application/octet-stream, then it
sure isn't text/css. A browser which conforms to the http protocol
will use the header, and since there is no stylesheet whose content
type is application/octet-stream, it will ignore the stylesheet
altogether. Mozilla in the early 1.x version (1.1, 1.2...?) did
exactly that, and I had stylesheets fail to load until the university
where I used to work fixed their mime.types file.

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #5

P: n/a
Brian wrote:
nick wrote:
John Bokma wrote:
nick wrote:

Warning: The stylesheet
http://www.jewelrybyponce.com/popup/popup.css was loaded as CSS even
though its MIME type, "application/octet-stream", is not "text/css".

In other words, it violated the standard. Well, at least it warns the user.
text/css css


Thanks, is there any serious problem if leave it along?

Yes. The http protocol is unambiguous about this: the content type
header is definitive. If it claims application/octet-stream, then it
sure isn't text/css. A browser which conforms to the http protocol will
use the header, and since there is no stylesheet whose content type is
application/octet-stream, it will ignore the stylesheet altogether.
Mozilla in the early 1.x version (1.1, 1.2...?) did exactly that, and I
had stylesheets fail to load until the university where I used to work
fixed their mime.types file.

ic, however, it seems the stylesheet is working - when I am using
Mozilla 1.6...
Jul 20 '05 #6

P: n/a
nick wrote:
ic,
You misspelled "I see".
however, it seems the stylesheet is working - when I am using Mozilla
1.6...


It only appears to work because of Mozilla's error recovery. You cannot rely
on browser error recovery. The MIME type of your CSS stylesheet is wrong
and needs to be corrected.

--
Shawn K. Quinn
Jul 20 '05 #7

P: n/a
nick wrote:
Brian wrote:
nick wrote:
John Bokma wrote:

nick wrote:

> Warning: The stylesheet
> http://www.jewelrybyponce.com/popup/popup.css was loaded as CSS
> even though its MIME type, "application/octet-stream", is not
> "text/css".
is there any serious problem if leave it along?


Yes. The http protocol is unambiguous about this: the content type
header is definitive. If it claims application/octet-stream, then it
sure isn't text/css.

ic, however, it seems the stylesheet is working - when I am using
Mozilla 1.6...


It seems that Mozilla has joined Opera, which already decided to
violate the standard as IE/Win does. That way, broken sites still
"work" in the browser. As I said, earlier versions of Mozilla, and
certain Netscape releases that were based on them, do follow the
standard in this regard, and will not load a stylesheet unless its
content type is text/css.

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.