Re: Mozilla browsers request a page twice

Re: Mozilla browsers request a page twice

am 31.03.2008 19:20:09 von AnrDaemon

Greetings, Michael Fesser.
In reply to Your message dated Wednesday, March 12, 2008, 20:45:26,

> .oO(Gary Hasler)

>>That seems to have done the trick. For those who are interested, it
>>looks like it was caused by having meta tag references to content-type
>>and "charset" in the document head. (Evidently Mozilla would start
>>loading the page, encounter the meta tag and decide it needed to reload
>>the whole page in a different mode.) I removed them all and that seems
>>to have worked. Good grief! And I still don't know why only pages with
>>.php extension were affected.

> Your server doesn't send any charset information. You should fix that.
> Currently every browser has to guess and fall back to its own default,
> which might cause a lot of new problems.

> In PHP this can be accomplished with a header() call:

> header('Content-Type: text/html; charset=...');

I'd recommend to set it in the php.ini
Directives

default_mimetype = "text/plain"
default_charset = "cp866"

I've used these for console development.
For the server environment it is

default_mimetype = "text/html"
default_charset = "Windows-1251"

for me.


--
Sincerely Yours, AnrDaemon