# Firefox reloads select field from cache?

**URL:** <https://www.ruby-forum.com/t/firefox-reloads-select-field-from-cache/111048>\
**Category:** Rails\
**Created:** [August 2, 2007, 5:48am UTC](https://www.ruby-forum.com/t/firefox-reloads-select-field-from-cache/111048 "2007-08-02T05:48:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PatRoy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3ec8ea/32.png) [@PatRoy](https://www.ruby-forum.com/u/PatRoy)\
**Post date:** [August 2, 2007, 5:48am UTC](https://www.ruby-forum.com/t/firefox-reloads-select-field-from-cache/111048/1 "2007-08-02T05:48:58Z")

</div>

Hi, I have a select field that has a “New Category” option in it. When  
it’s selected a prompt asks for a new category. It creates it, reloads  
the select field with rjs and selects the added category. Everything  
works fine so far. The problem is that when the user refreshes the  
page (not control-F5 for a complete refresh) it reloads the select box  
from the cached version? and selects the New Category option. Only  
happens in FF. Can anyone think of why it’s doing that?

---

<div class="post-metadata">

**Author:** ![PatRoy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3ec8ea/32.png) [@PatRoy](https://www.ruby-forum.com/u/PatRoy)\
**Post date:** [August 3, 2007, 4:25am UTC](https://www.ruby-forum.com/t/firefox-reloads-select-field-from-cache/111048/2 "2007-08-03T04:25:50Z")

</div>

because that’s just what firefox does 😉 you could use some js after  
the page loads to ensure the correct option is selected.
