SQL Server administration and T-SQL development, Web Programming with ASP.NET, HTML5 and Javascript, Windows Phone 8 app development, SAP Smartforms and ABAP Programming, Windows 7, Visual Studio and MS Office software
IIS Server Tutorials, Downloads and ASP.NET Code samples for WEB Developers


Disable Cache on Internet Information Services IIS for a Web Site

If you are developing a web application using Internet Information Services (IIS) and don't want to use cache so if you want to prevent server side caching of your web site application, then you can follow the procedure described in this IIS guide for web programmers.

Recently, I experienced a problem that is caused by caching of web pages on the server side. To prevent an other problem to occur, I decided to prevent IIS (IIS 6.2) Internet Information Services to cache web site pages.

The procedure to disable caching on server side (on IIS) is as follows

Launch IIS Manager
Connect to the target web server (or local server)
Drill down till you reach to the target web site within Connections window
On Features View under IIS features, there is Output Caching feature.

IIS Output Caching feature

Within the IIS web site feature view screen, you can see the important navigation points marked with red as seen in following screenshot.

IIS web site feature view

Double click on Output Caching icon
When Output Caching screen is displayed, on Actions window which is on the right click on Edit Feature Settings... link button.

Edit Feature Settings for Output Caching

Clear the Enable cache and Enable kernel cache checkboxes in order to prevent output caching without any filter based on file extensions on the current IIS web site.

edit output cache settings

It is possible to define caching strategy based file extensions using Add... link button where you can enable or disable output caching for selected file extensions.

add cache rule on IIS management console for a web site

For more on Output Caching feature on IIS, please refer to Microsoft Docs: Output Caching



IIS Server


Copyright © 2004 - 2021 Eralper YILMAZ. All rights reserved.