title: OutputCache setting inside my asp.net mvc web application. Multiple syntax to prevent caching
body: <p>I am working on an asp.net MVC web application and I need to know if there are any differences when defining the OutputCache for my action methods as follow:-</p>
  
  <pre><code>[OutputCache(Duration = 0, Location = OutputCacheLocation.Client, VaryByParam = "*")]
  </code></pre>
  
  <p>VS</p>
  
  <pre><code>[OutputCache(NoStore = true, Duration = 0, Location="None", VaryByParam = "*")]
  </code></pre>
  
  <p>VS</p>
  
  <pre><code>[OutputCache(NoStore = true, Duration = 0, VaryByParam = "*")]
  </code></pre>
  
  <p>Will all the above three setting prevent caching the data , or each on have different meaning ?</p>
  
  <p><strong>Second question</strong> what is the main difference between defining <code>duration=0</code> &amp; <code>NoStore=true</code> ? will both of them prevent caching ?
  Thanks</p>