Export (0) Print
Expand All

Edit an Output Caching Rule (IIS 7)

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

You can change an output cache rule if you have to change cache behavior for files in your site or application. For example, suppose you create an output cache rule that specifies that .aspx pages should be cached until they change. However, you determine later that the cache rule causes the cache to become full frequently because the .aspx pages in your application do not change often. You might then decide to change the cache rule to cache .aspx files for a specific duration of time and then to release resources on your Web server instead of clearing files from the cache after they change.

For information about the levels at which you can perform this procedure, and the modules, handlers, and permissions that are required to perform this procedure, see Output Caching Feature Requirements (IIS 7).

Exceptions to feature requirements

  • None

You can perform this procedure using the user interface (UI) or a command line.

  1. Open IIS Manager and navigate to the level you want to manage. For information about opening IIS Manager, see Open IIS Manager (IIS 7). For information about navigating to locations in the UI, see Navigation in IIS Manager (IIS 7).

  2. In the Features view, double-click Output Caching.

  3. On the Output Caching page, select the output cache rule that you want to change, and then click Edit in the Actions pane.

  4. Edit the existing cache rule as needed and then click Finish.

To <do_something>, use the following syntax:

appcmd command object parameter:value | parameter:variable | parameter:option1 | option2

The variable <variable_name> is <description_of_variable>. For example, to <do_something_specific>, type the following at the command prompt, and then press ENTER:

appcmd <exact_command_to_accomplish_the_procedure>

noteNote
When you use Appcmd.exe to configure the <element_name> element at the global level in IIS 7, you must specify /commit:WEBROOT in the command so that configuration changes are made to the root Web.config file instead of ApplicationHost.config.

For more information about Appcmd.exe, see Appcmd.exe (IIS 7).

The procedure in this topic affects the following configuration elements:

<profiles>

For more information about IIS 7 configuration, see IIS 7.0: IIS Settings Schema on MSDN.

See Also

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft