title: How do you disable caching on Modal dialogs in IE?
body: <p>We have implemented a popup window as a modal dialog using the IE method:</p>
  
  <pre><code>window.showModalDialog('...aspx')
  </code></pre>
  
  <p>The target of the popup window is itself an ASP.Net web page.</p>
  
  <p>Assume for the following steps that the popup has never been launched:</p>
  
  <ol>
  <li>Launch popup.</li>
  <li>Page_Load event handler executes on server side.</li>
  <li>Close popup.</li>
  <li>Immediately launch popup again.</li>
  <li>This time Page_Load event handler doesn't execute.</li>
  </ol>
  
  <p>It's clear that the popup content is being cached because if at Step 4 we clear the temporary internet files the Page_Load event handler is executed the second time.</p>
  
  <p>We have experimented with adding the following to the Head of the web page (as recommended by several other sources) but none of it seems to work. </p>
  
  <pre><code>&lt;meta http-equiv="Cache-Control" content="no-cache" /&gt;
  &lt;meta http-equiv="Pragma" content="no-cache" /&gt;
  &lt;meta http-equiv="Expires" content="-1" /&gt;
  </code></pre>
  
  <p>We have also seen places where the use of these is <a href="http://code.google.com/webstats/2005-12/metadata.html" rel="nofollow noreferrer">discouraged</a></p>
  
  <p>Can anyone help?</p>