title: How do I stop IIS from caching any files, ever, under any circumstances?
body: <p>I do some web development for work and the biggest hit to my productivity comes from IIS. It caches files that will not update even when they are changed, unless I restart IIS. Specifically, I am referring to html, js, and css files. This problem forces me to stop and start my web application constantly. Since I have Windows 7 I believe I have ISS 7.5. I am using IIS Express. This is so frustrating that I'd prefer IIS to never cache anything, ever. I am fine with a solution that stops all forms of caching or just for the project I am working on. </p>
  
  <p>IIS Manager is not available to me. It is not located in System and Security -> Administrative Tools -> IIS Manager like is suggested by <a href="https://technet.microsoft.com/en-us/library/cc770472%28v=ws.10%29.aspx" rel="noreferrer">https://technet.microsoft.com/en-us/library/cc770472%28v=ws.10%29.aspx</a>. Also, searching for inetmgr in the Start Search box gets me no results. Because of this, I am looking for a fix to the IIS applicationhost.config file.  </p>
  
  <p>I have tried putting the following in my applicationhost.config which doesn't work:</p>
  
  <pre><code>&lt;location path="ProjectName"&gt;
      &lt;system.webServer&gt;
          &lt;staticContent&gt;
             &lt;clientCache cacheControlCustom="public" cacheControlMode="DisableCache" /&gt;
          &lt;/staticContent&gt;
         &lt;caching enabled="false" enableKernelCache="false"&gt;&lt;/caching&gt;
      &lt;/system.webServer&gt;
  &lt;/location&gt;
  </code></pre>
  
  <p>The closest question on StackOverflow to my problem was <a href="https://stackoverflow.com/questions/29685600/iis-cached-files-never-replaced">IIS cached files never replaced</a>. However, Fiddler shows me that the old files are being sent to the browser even after they have been changed. </p>
  
  <p>How can IIS to send my browser the updated files without having to restart it?</p>