Rails Metal app executed multiple times if Content-Type not html in Firefox???

Hi,

I'm having a weird problem with an Rails Metal app.

I'm returning an image with Content-Type image/gif. Whenever I call
this app in Firefox it get's executed three times with just one
request. Using curl on the shell shows correct behaviour, however.

This only happens when Content-Type is not html or plain text.

Does anyone have an idea what might happen here?

Thanks!

Hi,

I'm having a weird problem with an Rails Metal app.

I'm returning an image with Content-Type image/gif. Whenever I call
this app in Firefox it get's executed three times with just one
request. Using curl on the shell shows correct behaviour, however.

This only happens when Content-Type is not html or plain text.

Does anyone have an idea what might happen here?

What happens if you load up a simple image in the public folder? Do the logs show it being hit three times? Can you tell if they are full requests or HEAD requests? I know sometimes Firebug tells me it is going to reload the page in order to get the info it wants. Perhaps that and some other plugins are getting in the way. Still, if that was the case it should happen for every image...

-philip