How to disable cache in IIS

I have been developing a PHP application running on IIS, and recently came across some caching issues. Lots of them. Normally, caching doesn’t bother me. In fact, it can help performance significantly. However, when I am developing, I don’t want anything to cache. Ever. It throws off the development.

Here’s how to do it in IIS:

  1. From IIS, select the website.
  2. Open “Output Caching” under the IIS section.
  3. Click “Add…” from the Actions panel.
  4. Specify an extension, Check “User-mode caching” and “Kernel-mode caching” and select the “Prevent all caching” options under each section.
  5. Click OK
  6. Restart the website.

Leave a Reply

Your email address will not be published. Required fields are marked *