Configuring Output Caching in IIS 7

Applies To: Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows Vista

In IIS 7, you can configure output caching to improve performance on your Web server, site, or application. When a user requests a Web page, IIS processes the request and returns a page to the client browser. If you enable output caching, a copy of that processed Web page is stored in memory on the Web server and returned to client browsers in subsequent requests for that same resource. This eliminates the requirement to reprocess the page every time that it is requested. This is helpful when your content relies on an external program for processing, such as with a Common Gateway Interface (CGI) program, or includes data from an external source, such as from a remote share or a database.

noteNote
Because cached items are retained in memory, they are dumped if resources run low on the server. The page will then be re-cached the next time that a user requests that resource, if the server determines that the page is sufficiently popular to be cached.

Tags : caching output


Community Content

Mapitech
Sharepoint Intranet site issue with IIS 7 Output Caching on Windows Server 2008
I am a Sharepoint developer and made a Sharepoint Intranet site for a few clients.<br />One of the clients upgraded their servers to Windows Server 2008 and the Sharepoint Intranet site stopped working properly after a few weeks.<br />The site kept showing the homepage only even though other pages were requested because they are actually the same pages but showing different contents using different web parts based on the querystring.<br />I initially thought I would be a caching issue so I tried a random value at the end of the querystring but it didn't work.<br />So I tried turning off OutputCache from Web.config and it did work. I knew the performance issue by turning off the OutputCache but I didn't have other choices.<br /><br />The site was working fine on Windows Server 2003 but had this problem on 2008 after a few weeks, which may mean that an automatic Windows Update made this happen.<br />Is this a bug in IIS 7 ?<br />Is there any solution to my problem without compromising the performance by turning the OutputCache off?<br /><br />Thank you,<br />Chan<br /><br />

Page view tracker