Closed
Bug 270409
Opened 20 years ago
Closed 20 years ago
Firefox, in particular situation send multiple GET at server, not with html extension.
Categories
(Core :: Networking: HTTP, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: icui, Assigned: darin.moz)
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
I have two page on my server, difference is only the extension, same content.
----------------------------------------
filename
content
----------------------------------------
----------------------------------------
page.htm
<img src="" alt="No source specified" />
----------------------------------------
----------------------------------------
page.php
<img src="" alt="No source specified" />
----------------------------------------
With php extension firefox send 2 GET at server but I charged page only one time.
APACHE LOG:
******* whith htm extension:
log server:
192.168.1.2 - - [17/Nov/2004:00:44:17 +0100] "GET /bug/page.htm HTTP/1.1" 200 41
******* whith php extension:
log server:
192.168.1.2 - - [17/Nov/2004:00:44:27 +0100] "GET /bug/page.php HTTP/1.1" 200 41
192.168.1.2 - - [17/Nov/2004:00:44:27 +0100] "GET /bug/page.php HTTP/1.1" 200 41
NB. same problem with tag: <link rel="stylesheet" href="" type="text/css" />
Reproducible: Always
Steps to Reproduce:
1. Go to http:/yoursite.ext/page.htm (view Details for the content of page) on
your server.
2. Go to http:/yoursite.ext/page.php (view Details for the content of page) on
your server.
3. See Server log file.
Actual Results:
192.168.1.2 - - [17/Nov/2004:00:44:17 +0100] "GET /bug/page.htm HTTP/1.1" 200 41
192.168.1.2 - - [17/Nov/2004:00:44:27 +0100] "GET /bug/page.php HTTP/1.1" 200 41
192.168.1.2 - - [17/Nov/2004:00:44:27 +0100] "GET /bug/page.php HTTP/1.1" 200 41
Expected Results:
192.168.1.2 - - [17/Nov/2004:00:44:17 +0100] "GET /bug/page.htm HTTP/1.1" 200 41
192.168.1.2 - - [17/Nov/2004:00:44:27 +0100] "GET /bug/page.php HTTP/1.1" 200 41
Updated•20 years ago
|
Assignee: firefox → darin
Component: General → Networking: HTTP
Product: Firefox → Browser
QA Contact: firefox.general → core.networking.http
Version: unspecified → Other Branch
Comment 1•20 years ago
|
||
Could you try with this php testcase.
http://www.meosource.com/firefox/hits.php
This is the source:
<?PHP
$a = fopen("hits.txt", "r+");
$contents = file_get_contents("hits.txt");
echo $contents;
$contents++;
fwrite($a, $contents);
fclose($a);
?>
I've seen this happening before. View counters updating twice, but I don't see
it with this case.
Comment 2•20 years ago
|
||
This is invalid. <img src=""> means "load current URI as the image" (just like
<link href="" rel="stylesheet"> means "load current URI as the stylesheet), and
since PHP by default disables caching we have to hit the server a second time.
The .htm case is just cached, so doesn't need an extra server hit.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•