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

**URL:** <https://www.ruby-forum.com/t/rails-metal-app-executed-multiple-times-if-content-type-not-html-in-firefox/170536>\
**Category:** Rails\
**Created:** [June 18, 2009, 4:59pm UTC](https://www.ruby-forum.com/t/rails-metal-app-executed-multiple-times-if-content-type-not-html-in-firefox/170536 "2009-06-18T16:59:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kabuto](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/85e7bf/32.png) [@Kabuto](https://www.ruby-forum.com/u/Kabuto)\
**Post date:** [June 18, 2009, 4:59pm UTC](https://www.ruby-forum.com/t/rails-metal-app-executed-multiple-times-if-content-type-not-html-in-firefox/170536/1 "2009-06-18T16:59:30Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Kabuto](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/85e7bf/32.png) [@Kabuto](https://www.ruby-forum.com/u/Kabuto)\
**Post date:** [June 18, 2009, 5:50pm UTC](https://www.ruby-forum.com/t/rails-metal-app-executed-multiple-times-if-content-type-not-html-in-firefox/170536/2 "2009-06-18T17:50:34Z")

</div>

> 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
