title: why doesn't refreshing Firefox reflect javascript code changes?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/49547/making-sure-a-web-page-is-not-cached-across-all-browsers">Making sure a web page is not cached, across all browsers</a>  </p>
  </blockquote>
  
  
  
  <p>I am working on a simple dojo comboBox (dijit.form.ComboBox) connected to a dojo.store.Memory.  I'm using the latest Netbeans and Glassfish setup, with Firefox 10.  My problem is that when I change or comment out code related to the combobox, the changes don't show up when I refresh the web page.  I've tried clean/build, rerunning, etc, but commenting out the code seems to do nothing.  Firefox seems to be running a cached version of the page, instead of rendering the latest code changes I've made.  I don't want to have to clear out the browser cache every time I refresh the page.  (What I ultimately want to be able to do is dictate when the autoComplete turns on and off.)  Any ideas? </p>
  
  <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
      &lt;head&gt;
      &lt;title&gt;&lt;/title&gt;
      &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;                   
      &lt;script src="http://ajax.googleapis.com/ajax/libs/dojo/1.7.1/dojo/dojo.js" type="text/javascript" &gt;&lt;/script&gt; 
  </code></pre>
  
   
  
  <pre><code>    &lt;script type="text/javascript"&gt;
          dojo.require("dijit.form.ComboBox");
          dojo.require("dojo.store.Memory");
  
          var myBox, store;
          dojo.ready(function(){makeComboBox();});
  
          function makeComboBox(){
  
              store = new dojo.store.Memory({
                  data: [
                      {name:"Alabama", id:"AL"},
                      {name:"Alaska", id:"AK"},
                      {name:"American Samoa", id:"AS"},
                      {name:"Arizona", id:"AZ"},
                      {name:"Arkansas", id:"AR"},
                      {name:"Armed Forces Europe", id:"AE"},
                      {name:"Armed Forces Pacific", id:"AP"},
                      {name:"Armed Forces the Americas", id:"AA"},
                      {name:"California", id:"CA"},
                      {name:"Colorado", id:"CO"},
                      {name:"Connecticut", id:"CT"},
                      {name:"Delaware", id:"DE"}                        
                  ]
              });                
  
              myBox = new dijit.form.ComboBox({                
                  id: "stateSelect",
                  name: "state",
                  //value: "Alabama", 
                  //store: store,  &lt;-- the box is still connected to the store, 
                                   &lt;--even if I comment it out
                  searchAttr:"name"
              }, "stateSelect");
              //myBox.set("autoComplete", "false"); &lt;-- this doesn't work either
          }
      &lt;/script&gt;
  
  &lt;div id="myDiv"  &gt;
      &lt;input id="stateSelect" &gt;
      &lt;p&gt;&lt;button onClick="alert(dijit.byId('stateSelect').get('value'))"&gt;get value&lt;/button&gt;&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>