Closed
Bug 338176
Opened 18 years ago
Closed 18 years ago
Non-cacheable url request turns into two requests to the web server
Categories
(Core :: Networking: HTTP, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 304574
People
(Reporter: bobm75, Unassigned)
References
Details
Attachments
(2 files)
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.3) Gecko/20060502 Firefox/1.5.0.3
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.3) Gecko/20060502 Firefox/1.5.0.3
When I request a non-cacheable url typed in from the address bar or refered from inside an html page Firefox will re-request the same url. This bug has been in since Firefox 1.5 was released. The url response does seem to show when the first request is finished.
The following are the response headers of one such request:
Server: Apache-Coyote/1.1
Cache-Control: no-store
Pragma: no-cache
Content-Type: image/jpeg
Content-Length: 27110
Date: Tue, 16 May 2006 18:36:07 GMT
200 OK
Reproducible: Always
Steps to Reproduce:
1. Type in non-cacheable url in address bar
2. Look at server logs
3. Observe two requests to the server
Actual Results:
There are two requests for the same url in the server logs.
Expected Results:
Just one request should've been enough to download the url.
Comment 1•18 years ago
|
||
Related to/dupe of bug #236858?
Could you provide an URL which demonstrates this please?
Component: File Handling → Networking: HTTP
Product: Firefox → Core
Version: unspecified → 1.8 Branch
Reporter | ||
Comment 2•18 years ago
|
||
This is the HTTP log from Firefox showing that Firefox is requesting two copies of the same url.
I can't give you a url to try yourself since this is a Tomcat server running on my local box.
Updated•18 years ago
|
QA Contact: file.handling → networking.http
Comment 3•18 years ago
|
||
do you charset detection enabled? (view|character encoding|autodetect)
Comment 4•18 years ago
|
||
Loading an image directly? Seems unlikely to be charset detection, and likely to be using the image as the tab favicon. Does the second request go away if you toggle browser.chrome.favicons to false (in about:config)?
BUG confirmed by my collegue and me
to reproduce:
- create a php script that writes (a timestamp) to a file and returns a jpg/gif file via readfile
- call this php script via http from your mozilla (firefox 1.5) browser
- you will find two entries in the file instead of one
Reporter | ||
Comment 6•18 years ago
|
||
Actually Phil Ringnalda was pretty close. When I toggle browser.chrome.site_icons to false (and leave browser.chrome.favicons alone) there is only one request in my Tomcat logs.
Comment 7•18 years ago
|
||
*** Bug 341411 has been marked as a duplicate of this bug. ***
fyi, here is my example code from bug #341411
Comment 9•18 years ago
|
||
*** This bug has been marked as a duplicate of 304574 ***
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•