title: vb net method in controller not call in second call
body: <p>I have a web application in vb net MVC and I am having a problem.
  My page displays the stock of an article with an url: Stock? Id = ART01</p>
  <p>When I go to my page once, the method is called in the controller (I put a breakpoint)
  If I refresh the page, the method is not called in the controller why?</p>
  <p>I tried to add this thinking it was a cache issue:</p>
  <pre><code>&lt;AttributeUsage((AttributeTargets.Class Or AttributeTargets.Method))&gt; _
  Public NotInheritable Class NoCacheAttribute
      Inherits ActionFilterAttribute
  
      Public Overrides Sub OnResultExecuting(ByVal filterContext As ResultExecutingContext)
          filterContext.HttpContext.Response.Cache.SetExpires(DateTime.UtcNow.AddDays(-1))
          filterContext.HttpContext.Response.Cache.SetValidUntilExpires(False)
          filterContext.HttpContext.Response.Cache.SetRevalidation(HttpCacheRevalidation.AllCaches)
          filterContext.HttpContext.Response.Cache.SetCacheability(HttpCacheability.NoCache)
          filterContext.HttpContext.Response.Cache.SetNoStore()
          MyBase.OnResultExecuting(filterContext)
      End Sub
  End Class
  
  &lt;NoCacheAttribute&gt;
  Public Class MyController
      Inherits Controller
  </code></pre>
  <p>But it doesn't work.</p>
  <p>Do you have an idea ?</p>