title: Which of the options : UseMaxAge , UseExpires are better as caching options
body: <p>Which one of the following is better for setting up the caching options of the static content (i.e. js,css,Images) for asp.net mvc2 applications:</p>
  
  <p>** - Web.config:**</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;configuration&gt;
    &lt;system.webServer&gt;
      &lt;!--Caching--&gt;
      &lt;staticContent&gt;
        &lt;clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="365.00:00:00"/&gt;      
      &lt;/staticContent&gt;
    &lt;/system.webServer&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>Or</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;configuration&gt;
    &lt;system.webServer&gt;
      &lt;!--Caching--&gt;
      &lt;staticContent&gt;      
        &lt;clientCache cacheControlMode="UseExpires" httpExpires="Tue, 31 Dec 2030 12:00:00 GMT"/&gt;
      &lt;/staticContent&gt;
    &lt;/system.webServer&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>In short I want to know which of the options : UseMaxAge , UseExpires are better. What are the impacts on it if I remove the ETags in the request and response headers by using the HttpModules.</p>
  
  <p>Can anyone help me to know more details about the above issue?</p>
  
  <p>Thanks &amp; Regards,
  Santosh Kumar Patro</p>