title: ASP.NET MVC 2 disable cache for browser back button in partial views
body: <p>I am using <code>Html.RenderAction&lt;CartController&gt;(c =&gt; c.Show());</code> on my master Page to display the cart for all pages. The problem is when I add an item to the cart and then hit the browser back button. It shows the old cart (from Cache) until I hit the refresh button or navigate to another page.</p>
  
  <p>I've tried <a href="https://stackoverflow.com/questions/1160105/asp-net-mvc-disable-browser-cache/1705113#1705113">this</a> and it works perfectly but it disables the Cache globally for the whole page an for all pages in my site (since this Action method is used on the master page). I need to enable cache for several other partial views (action methods) for performance reasons.</p>
  
  <p>I wouldn't like to use client side script with AJAX to refresh the cart (and login view) on page load - but that's the only solution I can think of right now.</p>
  
  <p>Does anyone know better?</p>