Closed Bug 305195 Opened 19 years ago Closed 19 years ago

View source appears on the main page without request.

Categories

(Toolkit :: View Source, defect)

x86
Windows 98
defect
Not set
critical

Tracking

()

VERIFIED INVALID

People

(Reporter: appletree_intranet, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6
Build Identifier: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6

Bug has been found when using our intranet, when open the page all the source
code appears on the main index page. Even after reloading the page it still does
the same thing. We found that by clearing the cache it and reloading it,
sometimes work, but only 85% of the time. Clearing the cache is not a good
solution as we have 3 emails that needs to be opened all the time so as to check
for new mails, but when cache is cleared, it clears the session as well, and
most of our system ask you for a login. It starts to become a little bit
annoying for user when they have to enter details in and they get this source
code appearing. Its works fine on internet explorer. We've been using it for 2
weeks now and yet nothing like that happened. Unfortunately we can't reproduce
it whenever we wants, it just happens.

Reproducible: Sometimes

Steps to Reproduce:
1.Refreshing the page all the time
2.Opening many link and hardcore browsing
3.doesn't work

Actual Results:  
Sometimes we get the source code.

Expected Results:  
Show the web page.
Is your server sending the correct headers?  FF relies on what the server tells
it the file is, whereas IE has it's own ideas.
You can check by right clicking on the page and selecting View Page Info
This happens if the page is send with text/plain instead of text/html.
(In reply to comment #1)
> Is your server sending the correct headers?  FF relies on what the server tells
> it the file is, whereas IE has it's own ideas.

How to fix it??
(In reply to comment #3)
> This happens if the page is send with text/plain instead of text/html.

How to fix this?
(In reply to comment #5)
> (In reply to comment #3)
> > This happens if the page is send with text/plain instead of text/html.
> 
> How to fix this?

It is down to the server - so depends on what you are using (I think!).  If this
is the problem, bug should be closed.  
-> INVALID
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
(In reply to comment #6)
> (In reply to comment #5)
> > (In reply to comment #3)
> > > This happens if the page is send with text/plain instead of text/html.
> > 
> > How to fix this?
> 
> It is down to the server - so depends on what you are using (I think!).  If this
> is the problem, bug should be closed.  

What do you mean on what we r using it? Its a linux server if this is what u
mean. And i still don't know how to fix this. Can you tell me a bit more about it?
(In reply to comment #8)

> What do you mean on what we r using it? Its a linux server if this is what u
> mean. And i still don't know how to fix this. Can you tell me a bit more about 
> it?

Your server software (on Linux, I guess probably Apache) has to send the browser
info on what type of file it is sending.  Normally, this is done by the server
looking at the file extension.  So for a file .htm or .html, the server should
send the MIME type as text/html.  FF then uses the MIME type to decide what to
do with the file.  If it is sent as text/html, FF will (try to) render it as a
web page.  But if it is sent as text/plain, FF will just display the raw data. 
So the point is your server has to be configured to send the corrct MIME type
for the file it is sending.  As I said, this depends on the server software
you're using.  If it is Apache, a good start would be the online docs at
http://httpd.apache.org/docs-project/
Status: RESOLVED → VERIFIED
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.