title: ASP.NET staticContent configuration option not working
body: <p>I've got an ASP.NET site running under VS10 Dev server.  I'd like for certain static content files to be served with a long max-age cache directive, but can't seem to get it working.</p>
  
  <p>I have this in my web.config:</p>
  
  <pre><code>&lt;system.webServer&gt;
  &lt;caching enabled="true" enableKernelCache="true"&gt;    
  &lt;/caching&gt;
  &lt;httpProtocol&gt;
    &lt;customHeaders&gt;
      &lt;remove name="X-Powered-By" /&gt;
    &lt;/customHeaders&gt;
  &lt;/httpProtocol&gt;
  &lt;validation validateIntegratedModeConfiguration="false"/&gt;
  &lt;modules runAllManagedModulesForAllRequests="true"/&gt;    
  </code></pre>
  
  <p></p>
  
  <p>And in folder of content to cache</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;configuration&gt;
    &lt;system.webServer&gt;
      &lt;staticContent&gt;
            &lt;clientCache cacheControlMode="UseMaxAge" 
  cacheControlMaxAge="30.00:00:00" /&gt;
          &lt;/staticContent&gt;
        &lt;/system.webServer&gt;
      &lt;/configuration&gt;
  </code></pre>
  
  <p>But it doesn't work either, it always serves with Cache-Control: private</p>
  
  <p>So, is this staticContent configuration supported?  If not, any workarounds?  If so, what am I missing? </p>
  
  <p>Headers i get in all requests: </p>
  
  <pre><code>Server: ASP.NET Development Server/10.0.0.0
  Date: Thu, 23 Feb 2012 20:47:56 GMT
  Cache-Control: private
  Content-Type: application/octet-stream
  Content-Length: 1043
  Connection: Close
  </code></pre>