title: How do I prevent page caching on a Classic ASP app?
body: <p>I need some pages <strong>not</strong> to be cached on a Classic ASP app, but I've tried every possible combination of headers and nothing seems to work:</p>
  
  <pre><code>Response.Expires         = -1
  Response.ExpiresAbsolute = Now() - 1
  Response.CacheControl    = "no-cache; private; no-store; must-revalidate; max-stale=0; post-check=0; pre-check=0; max-age=0"
  Response.AddHeader         "Cache-Control", "no-cache; private; no-store; must-revalidate; max-stale=0; post-check=0; pre-check=0; max-age=0"  ' Same as previous line, I know, just in case.
  Response.AddHeader         "Pragma", "no-cache"
  Response.AddHeader         "Expires", "-1"
  </code></pre>
  
  <p>I've also tried restarting both the website and IIS, to no avail. When I leave the page and return to it using the browser's back button, it doesn't reload.</p>
  
  <p>What am I missing here?</p>
  
  <p><strong>EDIT</strong>: After a lot of more googling, I have found and implemented <a href="http://www.hunlock.com/blogs/Mastering_The_Back_Button_With_Javascript" rel="nofollow">this JavaScript solution</a>, it's not bullet-proof since it's client-side, and I would prefer a Server-Side solution, but it does the job!</p>
  
  <p><strong>Still, I would like to hear about any server-side options.</strong></p>