<<
>>
Quick Contact
01233 666263

Pages Loading Twice

I found a problem, with Pages loading twice on one of our websites. Normally this would not be a problem, but when adding items to a basket or taking payments in E Commerce websites, this is a real issue. It meant that twice the quantity of products were added, or the payment was attempted twice.

From the Log Files, I could see that this was only happening to Firefox users. After a bit of Googling, it seems Firefox can be very picky about how you declare the document-content-type. Normally we would do this:

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

Removing the "charset=UTF-8" part stopped Firefox from loading pages twice. It also however broke the display for some UTF-8 characters.

It seems that adding the charset decloration back in, but ensuring there is no space ahead of charset:

<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />

...now works, it does not cause FF to load the pages twice, and does show UTF-8 character properly...

Don't we all love extra space...

Clive Knowles

Jan 2014