Closed
Bug 264383
Opened 20 years ago
Closed 20 years ago
Html code is displayed instead of web page
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: psilva, Assigned: bugzilla)
References
()
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041001 Firefox/0.10.1 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041001 Firefox/0.10.1 I'v recently installed a new Apache web server and I've found that some webpages, not all, are displayed as text/plain instead of text/html. So I get code instead of a web page. The one thing that is odd in this, is that the problem is complety random but normaly occurs when rapidly refreshing a page several times. If you right click the page and go to View Page Info you can see that content type is text/plain. This problem only goes away when saying to apache that it should use DefaultContenType text/html (default is text/plain). After this the problem never comes back... By the way this problem doesn't appear in IE .... I've to check also if this isn't an Apache bug. Reproducible: Always Steps to Reproduce: 1. rapidly refresh a page until you get html code instead of html parsed Actual Results: I get html code Expected Results: Parse the page normaly
Comment 1•20 years ago
|
||
similar (not knowingly connected to apache) experience had when browsing to the below site. Firefox OSX 10.3 G3-400 http://www.jetsetrecords.com/default.asp
Comment 2•20 years ago
|
||
The URL of this but (not from comment 1) works ok now. >This problem only goes away when saying to apache that it should use DefaultContenType text/html (default is text/plain). After this the problem never comes back... That's exactly the problem ! If there's no *.html --> plain/html mapping, then Apache falls back on the DefaultContentType setting. Firefox only does what it's asked : if the MIME-type says it's plain/text, then it will be displayed as plain/text. Ther's no attempt to try to discover the real type (as IE does), because the HTTP standard requires that the MIME-type has the priority, not the content.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•