Open
Bug 1007563
Opened 11 years ago
Updated 2 years ago
API get method getting called twice
Categories
(Core :: General, defect)
Tracking
()
UNCONFIRMED
People
(Reporter: sheth.krutik, Unassigned)
References
(Depends on 1 open bug)
Details
Hi,
I am an asp.net mvc developer and recently I am facing one issue while making a get call on firefox i.e its getting called twice.
Here is sample Code for my controller class :
public ActionResult Index(string id)
{
if(!String.IsNullOrEmpty(id)){
return File("/Content/test.png", "image/png");
}
When I am calling this url:http://localhost:53037/Home/Index?id=52 in firefox browser its calling my method twice.
Following are two header captured on fiddler:
1. First Call Header:
GET https://localhost:44306/test/index?id=52 HTTP/1.1
Host: localhost:44306
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
Cache-Control: max-age=0
2. Second Call header:
GET https://localhost:44306/test/index?id=52 HTTP/1.1
Host: localhost:44306
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
I also tried setting no-cache and max age properties but they are yielding same result.
Could you please help me out with this
![]() |
||
Comment 1•11 years ago
|
||
Are you just loading http://localhost:53037/Home/Index?id=52 from the url bar? What exact headers does the server return? Is this a clean profile?
Flags: needinfo?(sheth.krutik)
(In reply to Boris Zbarsky [:bz] from comment #1)
> Are you just loading http://localhost:53037/Home/Index?id=52 from the url
> bar? What exact headers does the server return? Is this a clean profile?
Yes i am loading it from a url bar. I get following headers:
Following are two header captured on fiddler:
1. First Call Header:
GET https://localhost:44306/test/index?id=52 HTTP/1.1
Host: localhost:44306
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
Cache-Control: max-age=0
2. Second Call header:
GET https://localhost:44306/test/index?id=52 HTTP/1.1
Host: localhost:44306
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
I am not clear what you you mean by clean profile.So if you just be more clear regarding that.
Thanks,
Krutii
Flags: needinfo?(sheth.krutik)
![]() |
||
Comment 3•11 years ago
|
||
> Following are two header captured on fiddler:
Those are the request headers. What are the response headers?
> I am not clear what you you mean by clean profile.
https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles
Or at least safe mode as documented at https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode just to make sure this is not an issue with an extension you have installed.
(In reply to Boris Zbarsky [:bz] from comment #3)
> > Following are two header captured on fiddler:
>
> Those are the request headers. What are the response headers?
>
> > I am not clear what you you mean by clean profile.
>
> https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-
> firefox-profiles
>
> Or at least safe mode as documented at
> https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-
> mode just to make sure this is not an issue with an extension you have
> installed.
Hi,
Take a look this are fresh header of request/response:
First:
Request:
GET http://localhost:53037/ShopifyAna/Index?id=52f86e5e5edf1d0660928e0a&store=st1 HTTP/1.1
Host: localhost:53037
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Cookie: __utma=111872281.758812198.1389796730.1397551512.1397887364.14; __utmz=111872281.1389796730.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); ss-pid=xSr4/n41ZcWIUYt06OSW; .ASPXAUTH=28F2184B13E0E5F4D30671747C948BFADE2177823224C09DD2FB1883E6AFD245DCDD67607FD61B763F76C16F0A5A2A514AB8FA91682C5C156031D333E6271A304EB97D47A4DE19746CE01C1B49DE75583579DB8C0130362952F7A67722AB532A048E24888FB5546BC909B451A52248349FBC9865A89F4CDAB49077A2638937013308985E951A050337DCD836C9A8073A
Connection: keep-alive
Response:
HTTP/1.1 200 OK
Server: ASP.NET Development Server/11.0.0.0
Date: Thu, 08 May 2014 12:35:46 GMT
X-AspNet-Version: 4.0.30319
X-AspNetMvc-Version: 4.0
Cache-Control: private
Content-Type: image/png
Content-Length: 935
Connection: Close
Second :
Request:
GET http://localhost:53037/ShopifyAna/Index?id=52f86e5e5edf1d0660928e0a&store=st1 HTTP/1.1
Host: localhost:53037
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Cookie: __utma=111872281.758812198.1389796730.1397551512.1397887364.14; __utmz=111872281.1389796730.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); ss-pid=xSr4/n41ZcWIUYt06OSW; .ASPXAUTH=28F2184B13E0E5F4D30671747C948BFADE2177823224C09DD2FB1883E6AFD245DCDD67607FD61B763F76C16F0A5A2A514AB8FA91682C5C156031D333E6271A304EB97D47A4DE19746CE01C1B49DE75583579DB8C0130362952F7A67722AB532A048E24888FB5546BC909B451A52248349FBC9865A89F4CDAB49077A2638937013308985E951A050337DCD836C9A8073A
Connection: keep-alive
Response :
HTTP/1.1 200 OK
Server: ASP.NET Development Server/11.0.0.0
Date: Thu, 08 May 2014 12:35:47 GMT
X-AspNet-Version: 4.0.30319
X-AspNetMvc-Version: 4.0
Cache-Control: private
Content-Type: image/png
Content-Length: 935
Connection: Close
(In reply to Boris Zbarsky [:bz] from comment #5)
> Ah, chances are this is bug 583351.
so what's solution for this....???
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•