Closed Bug 229030 Opened 22 years ago Closed 21 years ago

casghockey.com - Stylesheet not loaded because it has text/plain MIME type

Categories

(Tech Evangelism Graveyard :: French, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: brice, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5) Gecko/20031026 Firebird/0.7 Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5) Gecko/20031026 Firebird/0.7 Report from the javascript console : Error: The stylesheet http://www.casghockey.com/themes/new/style.css was not loaded because its MIME type, "text/plain", is not "text/css". The line of the stylesheet related is the following : <link rel="stylesheet" type="text/css" href="themes/new/style.css"> Reproducible: Always Steps to Reproduce: 1. Open the URL http://www.casghockey.com 2. The font is ugly 3. Go to the javascript console to see the errors noticed in details Expected Results: Load the stylesheet, I'm sure the line referencing the stylesheet is right, I made myself the website : <link rel="stylesheet" type="text/css" href="themes/new/style.css">
Seing the same with branch build 20031218, Windows XP.
Since you made it yourself, are you sure the web server is set to send files with a .css extension as text/css? I don't know if this would make a difference (especially since you specifically give it a mime type in the link tag), but it could be the culprit.
The server is sending the CSS file as text/plain. From the JS Console: "Error: The stylesheet http://www.casghockey.com/themes/new/style.css was not loaded because its MIME type, "text/plain", is not "text/css"." Because you're in standards compliance mode, text/plain CSS files are not loaded (the type from <link> is only a suggestion). Either change to quirks mode (http://www.mozilla.org/docs/web-developer/quirks/) or have the server actually send .css files as text/plain. Look for a file called "mime.types" in your zeus server config directories that tells the server what MIME type to send for each file (example at http://support.zeus.com/doc/examples/nsapi/default_conf.html).
->Invalid. Server settings need to be corrected.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
Changing component to Tech Envangelism
Assignee: blake → french
Status: UNCONFIRMED → NEW
Component: General → French
Ever confirmed: true
Product: Firebird → Tech Evangelism
QA Contact: french
I see, I made the web site, so I can modify the files, but I cannot modify the webser, I can ask the company hosting the site to do it, I have several contacts. Anyway, I think Mozilla should autodetect it is a .css file and use it as if it had the right MIME type, no ? It works well, with all other browsers.
Summary: Stylesheet not loaded → casghockey.com - Stylesheet not loaded because it has text/plain MIME type
Thank you for all this information, I'll ask the hosting company so they change their server configuration, I understand the problem now. Maybe it is not the right place to discuss about this, but should we change the navigator to quirks mode for people who don't know anything about technology, in general ? We are a company making a linux distribution for a light PC we will sell, we use Mozilla Firebird, and do not want our customer to have strange behaviour of the navigator. As a developer I'll continue using it in strict mode for my tests.
fixed
Status: NEW → RESOLVED
Closed: 22 years ago21 years ago
Resolution: --- → FIXED
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.