Re: Scripts running twice
| From: | Ashley Sheridan | Date: | Tue, 12 Oct 2010 18:52:46 +0000 |
| Subject: | Re: Scripts running twice | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-308659@lists.php.net to get a copy of this message | ||
On Tue, 2010-10-12 at 20:45 +0200, Alexander Schrijver wrote:
> On Tue, Oct 12, 2010 at 05:29:39PM +0100, ash@ashleysheridan.co.uk wrote:
> > That's probably it then! Some browsers make multiple requests to speed up rendering
> > of a page.
>
> Do you have any examples of browsers which do this? Because that kind of
> behaviour would be wrong.
I just know that a couple of years ago, I was working on a website that
removed credits from a clients account upon a page visit. When the page
was accessed via a link, two credits were always taken. We did all sorts
of tests, from writing to the DB in a single call from that page, and
every time, it was coming up with two hits. This was happening on all
the main browsers: Fx, IE, Opera & Safari.
It's not the wrong behaviour, this is allowed behaviour when using the
GET protocol, which most general page requests are I believe.
Thanks,
Ash
http://www.ashleysheridan.co.uk