Issue 64810 in chromium: Chrome loads a page twice without user knowing

1,079 views
Skip to first unread message

chro...@googlecode.com

unread,
Nov 30, 2010, 5:18:37 PM11/30/10
to chromi...@chromium.org
Status: Unconfirmed
Owner: ----
Labels: Type-Bug Pri-2 Area-Undefined

New issue 64810 by dikidera: Chrome loads a page twice without user knowing
http://code.google.com/p/chromium/issues/detail?id=64810

Chrome Version :
Google Chrome 7.0.517.44 (Official Build 64615)
WebKit 534.7
V8 2.3.11.22
User Agent Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7

Firefox 3.6.10: OK!

What steps will reproduce the problem?
1. Build a php script which will increment a field when you visit a
page/some content.
2. Visit the page with chrome.

What is the expected result?
Increment the field once ie. If it was 0 then it should be 1, if it is 1 it
should be 2.

What happens instead?
The field gets increment twice as if the script/page was executed/loaded
twice.


I was mind boggled at what the problem was so i tried Firefox and i was
surprised there were no issues there. It means Chrome is loading the
webpage twice thus i get more queries per load of the page which in turn
increases the mysql queries and get high load on the server.

This will probably happen to any developer who is counting on exact views
of some content and raise his load on the web server.

chro...@googlecode.com

unread,
Nov 30, 2010, 5:51:05 PM11/30/10
to chromi...@chromium.org
Updates:
Labels: FeedbackRequested

Comment #1 on issue 64810 by pe...@chromium.org: Chrome loads a page twice

Thank you for reporting this issue. Can you reproduce the issue on the
following link? It's a script which increments a counter on each page-load,
it counts properly here with Chrome 9.0.587.0(dev) on Windows Vista SP2.

http://peter.sh/files/counter.php

chro...@googlecode.com

unread,
Nov 30, 2010, 6:15:43 PM11/30/10
to chromi...@chromium.org

Comment #2 on issue 64810 by dikidera: Chrome loads a page twice without
user knowing
http://code.google.com/p/chromium/issues/detail?id=64810

Counts perfectly for me as well, however on my own-coded website it
increments the mysql field twice. Firefox has no such problem.

chro...@googlecode.com

unread,
Nov 30, 2010, 6:23:59 PM11/30/10
to chromi...@chromium.org

Comment #3 on issue 64810 by pe...@chromium.org: Chrome loads a page twice

It might be some faulty resource then. In order to properly track down this
issue we either need the URL of your website, or a reduced test-case which
reproduces the problem for you.

chro...@googlecode.com

unread,
Dec 11, 2010, 4:54:01 AM12/11/10
to chromi...@chromium.org

Comment #5 on issue 64810 by dikidera: Chrome loads a page twice without
user knowing
http://code.google.com/p/chromium/issues/detail?id=64810

Sorry for the delayed answer. If you can access this website
http://manga.1gb.bg then please proceed to
http://manga.1gb.bg/display.php?id=13

There is a field where it says Views and the number of views are displayed.
Refreshing the page i see it being updated twice

chro...@googlecode.com

unread,
Dec 12, 2010, 7:26:41 PM12/12/10
to chromi...@chromium.org

Comment #6 on issue 64810 by andmeek: Chrome loads a page twice without
user knowing
http://code.google.com/p/chromium/issues/detail?id=64810

I have a very similar issue. What got me was it's not Chrome reloading the
page but instead some other network. Doing an IP lookup from our logs said
it was from Tokyo.

I have a script that tests submissions of customers through a process that
is in a public directory but not indexed or linked to etc. We ran a test by
executing that script through Chrome on 2010-12-10 and that script got
re-executed by some random IP 4 times over the next two days.

Here's the IP's:
150.70.64.201
150.70.172.101
150.70.66.184
150.70.66.183

This happens almost every time we run that script or in other similar
situations. On less public/internal web applications I never have this
issue with Chrome. My first though would be this is some virus issue, but
it happens on any network or machine I use Chrome on and never happens with
Firefox/safari/etc.

chro...@googlecode.com

unread,
Dec 12, 2010, 8:02:56 PM12/12/10
to chromi...@chromium.org

Comment #7 on issue 64810 by temp01...@gmail.com: Chrome loads a page twice

dikidera, It's probably the images with empty/no src attributes on that
page. Can you remove that and try again? There's already a bug open about
that - see issue 38144.

chro...@googlecode.com

unread,
Jul 8, 2011, 9:17:44 AM7/8/11
to chromi...@chromium.org

Comment #11 on issue 64810 by vysaven...@gmail.com: Chrome loads a page

We are facing same issue. Page_Load Method getting invoked twice.
It happens only in Chrome.


Chrome Version v12.

chro...@googlecode.com

unread,
Feb 22, 2012, 1:10:56 AM2/22/12
to chromi...@chromium.org

Comment #12 on issue 64810 by Doug...@gmail.com: Chrome loads a page twice

I'm working on a site using CodeIgniter and both native PHP sessions and
the sessions class CodeIgniter provides over top of PHP. I noticed that,
in one method in particular, I was having an issue where a page was being
called twice (but only one page, not multiple), which was resetting saved
session variables.

I tried this page on Firefox and it's not an issue.

chro...@googlecode.com

unread,
Apr 5, 2012, 10:36:47 PM4/5/12
to chromi...@chromium.org

Comment #13 on issue 64810 by l.lang...@gmail.com: Chrome loads a page

I am running a script that inserts information into a DB. This insert is
happening twice. The page is being loaded with Chrome. This does not happen
when I use Firefox. My OS is Ubuntu, but I have tested on a Windows XP
machine with the same results. the only thing loading on the page is the
SQL statement and a Functions .php file. It happens with or without echos.
I was using the page as a pass-through. Once the db is updated the page is
redirected using a PHP header command so that there is no output to the
browser. Still had issues.

chro...@googlecode.com

unread,
Apr 12, 2012, 4:00:24 AM4/12/12
to chromi...@chromium.org

Comment #14 on issue 64810 by fatihtat...@gmail.com: Chrome loads a page

for testing the issues you can check my web site. api.enginar.in for check
the my_sql db enginar.in/sql username : enginar_db pass: 123456a

When you open the api.enginar.in url the system insert a record in account
table. You can see in phpmyadmin on enginar.in/sql.

While using chrome two record inserted. :/

This is a bug for chrome or my coding. But when i am testing in firefox, IE
9.0 and Opera there is no twice insert.

For checking error, these sites will be open until 1st June 2012. Please
help me.

chro...@googlecode.com

unread,
Apr 12, 2012, 8:19:25 AM4/12/12
to chromi...@chromium.org

Comment #15 on issue 64810 by l.lang...@gmail.com: Chrome loads a page

The best way I have found to ensure this does not happen twice is to set a
special variable when making the entry. This should be a unique reference
number to that particular entry. If that entry is found in the DB already,
do not make the entry. I know this does not solve the Chrome issue, its
just a work-around. But at least it keeps the double entries from happening.

chro...@googlecode.com

unread,
Apr 13, 2012, 8:10:43 AM4/13/12
to chromi...@chromium.org

Comment #16 on issue 64810 by fatihtat...@gmail.com: Chrome loads a page

We find the reason. It's about favicon.ico file. Chrome request it If
my .htaccess redirect every requet into index.php the data duplication
occurs.

How can I solve this problem?

chro...@googlecode.com

unread,
Apr 13, 2012, 9:21:46 AM4/13/12
to chromi...@chromium.org

Comment #17 on issue 64810 by l.lang...@gmail.com: Chrome loads a page

The pages that I have been having issues with do not use the favicon.ico,
and do not use the .htaccess. I am not sure how you would resolve it. If
all you are looking to do is redirect for URI rewriting, you could try
having your 404 page redirect you to the index.php page. My host lets me
use my index.php page as the 404 page, so it works great. I can use a
mixture of URI rewriting and hardcoded pages.

Hope this helps.

chro...@googlecode.com

unread,
Apr 13, 2012, 11:16:47 AM4/13/12
to chromi...@chromium.org

Comment #18 on issue 64810 by fatihtat...@gmail.com: Chrome loads a page

I have change my .htaccess file into

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !favicon.ico
RewriteRule .* index.php [L]

and my problem is solved. My problem is favicon.ico file.

chro...@googlecode.com

unread,
Oct 4, 2012, 5:17:15 PM10/4/12
to chromi...@chromium.org

Comment #19 on issue 64810 by windowme...@gmail.com: Chrome loads a page
Issue fixed by fatihtat...@gmail.com suggestion.

chro...@googlecode.com

unread,
Jan 17, 2013, 3:51:56 AM1/17/13
to chromi...@chromium.org

Comment #23 on issue 64810 by bgh...@gmail.com: Chrome loads a page twice
I can confirm this issue, but it is only affects linux versions.
Tested the latest Google Chrome 24.0.1312.52 on Ubuntu 12.04 and Windows 7
with http://peter.sh/files/counter.php and the Windows version is fine.

chro...@googlecode.com

unread,
Feb 20, 2013, 6:14:59 AM2/20/13
to chromi...@chromium.org

Comment #24 on issue 64810 by wilkola...@gmail.com: Chrome loads a page
Chrome version 24.0.1312.57 m

My application is a huge webapp based on Zend Framework. The Chrome works
normal with it, with one exception.

I just developed a new simple action which sends a test email, so our email
designer can test the email templates. The action sends email and displays
bare one line html:

<!DOCTYPE html><html><head><title>Email send</title></head><body
style="background-image:none">Email send</body></html>

The application contains a favicon.ico file. It displays properly on this
page. As you see, I have tried the empty background fix. There are no
images.
The Developer Tools network tab shows just one request, for the action
itself. No resources requests are being made.

Still, refreshing the page in Chrome sends TWO emails, while in Firefox
there is just one. I have spend 3 hours today trying to find bug in my
code, and I can se none. This happens both on production and development
servers. The email engine is working fine when sending "real" emails as a
result of much more complicated requests, that is the emails are not
duplicated.

The issue is present if the request is being made with GET method. The
query string after '?' is passed on both calls, so the duplicate is surely
not a misrouted favicon request.

If the action is called with POST, then there is one email send, no
duplicate call is made.

Unfortunatelly I cannot put this code online, as the application is
accessible form intranet only.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

chro...@googlecode.com

unread,
Feb 20, 2013, 6:22:59 AM2/20/13
to chromi...@chromium.org

Comment #25 on issue 64810 by wilkola...@gmail.com: Chrome loads a page
Sorry, my test case was incorrect.
The POST method is also affected, but the duplicate request is being made
with the GET method. The $_POST and $_GET arrays are empty in this case.

Apache says that the POST request timestamp is 1361357629,
and GET timestamp is 1361357630, so the GET was sent a little bit later and
the second has changed.

Best regards,
SWilk

chro...@googlecode.com

unread,
Nov 1, 2013, 3:40:19 AM11/1/13
to chromi...@chromium.org

Comment #29 on issue 64810 by Ondrej.H...@gmail.com: Chrome loads a page
i solved this problem with replacing this:

<a href="?foo=bar">link</a>

for this

<a href="http://example.com?foo=bar">link</a>

Chrome 30.* on Ubuntu 13.10

chro...@googlecode.com

unread,
Jan 17, 2014, 2:17:47 AM1/17/14
to chromi...@chromium.org

Comment #30 on issue 64810 by jasmin9...@gmail.com: Chrome loads a page
Hi all, i am also facing this problem when running the counter program
using node.js

chro...@googlecode.com

unread,
Jan 17, 2014, 2:18:48 AM1/17/14
to chromi...@chromium.org

Comment #31 on issue 64810 by jasmin9...@gmail.com: Chrome loads a page
This file has code using node.js

chro...@googlecode.com

unread,
Jun 25, 2014, 5:15:13 PM6/25/14
to chromi...@chromium.org

Comment #32 on issue 64810 by jeffd...@gmail.com: Chrome loads a page twice
I have been experiencing this in Chrome for the last few months. It didn't
used to do it before. I have a migration script that I update and run when
needed. It is run in an HTTP GET function on my Google App Engine server.
In this way I'm able to type the migration script URL in my browser and
have it run my migration code.

I started noticing that the server was logging the HTTP GET request
occurring twice for every one time I type the URL and hit enter in the
Chrome browser. It only runs once in Firefox. This can be problematic for
my migration scripts (parallel instances executing at once), but also quite
redundant if this is happening for all URLs typed into the Chrome browser.

chro...@googlecode.com

unread,
Jun 29, 2014, 11:59:12 AM6/29/14
to chromi...@chromium.org

Comment #33 on issue 64810 by mario....@gmail.com: Chrome loads a page
I found some extra information about this issue, I was developing an
application in java and tomcat, I open the application through chromium and
the problem does not occurs the first time, when I open the second instance
then the problem was evident because two requests were received in the
server, I have a memory monitor and I can see two requests getting memory.
It seems that when you are typing the url and selection from the list it
goes to the server and when press enter goes again. Here is a video with
the problem: http://youtu.be/wns9IzzOUZA

chro...@googlecode.com

unread,
Sep 23, 2014, 3:27:10 AM9/23/14
to chromi...@chromium.org

Comment #34 on issue 64810 by ajith.mo...@gmail.com: Chrome loads a page
twice without user knowing
https://code.google.com/p/chromium/issues/detail?id=64810

This chrome unknowingly entered maximum a/c entry twice to my database,
which now become a hetik job to search and delete those..... Now i just
recomemded my client not to use this browser for ENTRY.... MOZLLA is best
off-course.... MR GOOGLE PROGRAMMER SHOULD DO SOMETHING FOR THIS BUG AND
NOT EAT OUT HEAD SEARCHING FOR SCRIPT ERRORS..

chro...@googlecode.com

unread,
Jan 31, 2015, 9:19:43 PM1/31/15
to chromi...@chromium.org

Comment #35 on issue 64810 by vi...@transitionsquad.com: Chrome loads a
vincewan, you're a genious. I was having the same problem in FF and Chrome
but not IE. When I removed the CSS for "background-image: url();" the
problem went away. Thanks.

chro...@googlecode.com

unread,
Aug 6, 2015, 8:43:44 PM8/6/15
to chromi...@chromium.org

Comment #37 on issue 64810 by dikid...@gmail.com: Chrome loads a page twice
It is ridiculous that 5 years after I originally posted this issue, I am
still getting updates on people experiencing it. I would've expected the
issue to be fixed by now :/

chro...@googlecode.com

unread,
Aug 11, 2015, 6:34:22 AM8/11/15
to chromi...@chromium.org

Comment #38 on issue 64810 by xxx...@gmail.com: Chrome loads a page twice
I experienced the same issue since yesterday. 2 of my sites had this
problem. A lot of other sites not. Apparently the following code in my MVC
layout page triggered this odd behaviour in Chrome: <link rel="shortcut
icon" href="#">. Once i replaced the # with /favicon.ico i noticed 1
http-request for my page(s) instead of 2. Even when the /favicon.ico
doesn't exist in the root of the website ... FYI, see also:
https://code.google.com/p/chromium/issues/detail?id=39402.

chro...@googlecode.com

unread,
Oct 9, 2015, 8:04:25 AM10/9/15
to chromi...@chromium.org

chro...@googlecode.com

unread,
Nov 18, 2015, 11:18:35 AM11/18/15
to chromi...@chromium.org

Comment #40 on issue 64810 by mar...@mhcreations.co.uk: Chrome loads a page
I am also finding this issue, and it is very frustrating to discover the
cause. This issue appears on Chrome and Safari ONLY, but on Chrome I set a
favicon.ico file as defined above and this worked for about 10 minutes, but
then failed to work.

My page does not have any other issues that have be mentioned here, also
using Tamper to trace what's being loaded I can't see any 404 or repeat
calls for page assets.

Chrome: 45.0
Doctype: HTML 5
PHP: page appears to load PHP content twice and leave database trail twice
when page only appears to the user once.

Very confusing.

chro...@googlecode.com

unread,
Dec 31, 2015, 9:49:05 PM12/31/15
to chromi...@chromium.org

Comment #41 on issue 64810 by thomasus...@gmail.com: Chrome loads a page
Verified this is happening on my brand new osx laptop as well. If my
assumption is true and this bug is still active this is a HUGE bug, it
would be doubling internet traffic for all chrome users. I must be doing
something wrong...

chro...@googlecode.com

unread,
Jan 6, 2016, 4:19:37 PM1/6/16
to chromi...@chromium.org

Comment #42 on issue 64810 by qwa...@googlemail.com: Chrome loads a page
guys,

also had same problem - issue was a div with a background-image which had
empty url src i.e.

background:url('')

After removing the background attribute the page loads once.

chro...@googlecode.com

unread,
Feb 1, 2016, 6:20:17 AM2/1/16
to chromi...@chromium.org

Comment #44 on issue 64810 by vitome...@gmail.com: Chrome loads a page
Thanks "stooney..."!

The iframe with src="#" was the trigger for me as well.
Setting src="about:blank" fixed the issue.

I confirm the issue happened only on chrome, whereas ie and firefox were ok
with it.

chro...@googlecode.com

unread,
Feb 1, 2016, 6:29:27 AM2/1/16
to chromi...@chromium.org

Comment #45 on issue 64810 by vitome...@gmail.com: Chrome loads a page
This issue has been marked as a duplicate of 38144, that is closed.
I guess no developer will see either of them, right?
Should we open a new issue?

chro...@googlecode.com

unread,
Feb 18, 2016, 3:31:47 PM2/18/16
to chromi...@chromium.org

Comment #47 on issue 64810 by ThergF...@gmail.com: Chrome loads a page
I have similar issue, Google chrome 48.0.2564.116.
Fresh chrome start, then new tab, url, enter, server receives two requests
at the same time, that messes cookie remember-me auth. There is no anything
like src="#" on the page. Actually chrome sends requests before he get
page's body.
Reply all
Reply to author
Forward
0 new messages