user1515295
user1515295

Reputation: 1211

Duplicate Requests from a Browser

When I go to a url such as

http://localhost:3000/test12

through a browser like Firefox (even in safe mode) or Chrome, I see a duplicate request in the log. This happens both locally in development or on the web in production:

But when I curl that url, I don't see the duplicate request:

Any suggestions for what might be happening? This is Rails 3.2 and Ruby 1.93.

Upvotes: 2

Views: 1758

Answers (2)

user1515295
user1515295

Reputation: 1211

One of the commenters mentioned that the problem might be with a resource such as an image or JS that is not successfully loading.

After testing, I found that it was indeed some CSS that was missing a URL: "background-image: url();".

Upvotes: 2

Paulo Fidalgo
Paulo Fidalgo

Reputation: 22331

Since you could have an addon making those requests, restart Firefox without addons:

https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode

Upvotes: 0

Related Questions