title: IIS 7.5 and images not being cached
body: <p>I cannot get the image files to cache. I have tried everything that I have found on this site and others and still cannot get them to cache.</p>
  
  <p>Web config setting that I have tried</p>
  
  <pre><code>    &lt;staticContent&gt;
      &lt;clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="1.00:00:00" /&gt;
      &lt;/staticContent&gt;
      &lt;httpProtocol allowKeepAlive="true" /&gt;
  
  
      &lt;caching enabled="true" enableKernelCache="true"&gt;
      &lt;profiles&gt;
      &lt;add extension=".png" policy="CacheUntilChange" /&gt;
      &lt;add extension=".jpg" policy="CacheForTimePeriod" duration="12:00:00" /&gt;
      &lt;/profiles&gt;
      &lt;/caching&gt;  
  </code></pre>
  
  <p>Here is the response headers for 1 of the images</p>
  
  <pre><code>    Key Value
      Response    HTTP/1.1 200 OK
      Cache-Control   no-cache
      Content-Type    image/png
      Last-Modified   Thu, 16 Dec 2004 18:33:28 GMT
      Accept-Ranges   bytes
      ETag    "a1ca4bc9de3c41:0"
      Server  Microsoft-IIS/7.5
      X-Powered-By    ASP.NET
      Date    Fri, 18 May 2012 13:21:21 GMT
      Content-Length  775
  </code></pre>