title: MVC3 - AJAX Partial View is being cached...and I can't stop it
body: <p>I'm using MVC3 - i have a javascript function that uses jQuery get() to get a PartialView from a controller. </p>
  
  <p>The problem is that it's being cached and i keep getting stale content back. </p>
  
  <p>I've tried [OutputCache(Duration=0)] on the action, thinking it would prevent it caching, but no joy.  Could it be the client caching it too?</p>
  
  <p>EDIT:</p>
  
  <p>I've recently been using another way to prevent caching which may be useful to some.</p>
  
  <pre><code>$.get("/someurl?_="+$.now(),function(data) {  
       // process data
  });
  </code></pre>
  
  <p>It's obviously not as clean, but because each request passes a <code>_=12345678</code> (timestamp) it's never cached.</p>
  
  <p>Hope it helps.</p>