DisableStaticFileCache Metabase Property

Applies To: Windows Server 2003, Windows Server 2003 with SP1

The DisableStaticFileCache property specifies the caching of static files for a directory and is disabled on a per-request basis. If DisableStaticFileCache = 1, static files are not cached for the specified directory. Note: Active Server Pages (ASP) files and templates are cached independently of this setting. This property may be set on any valid virtual directory and applies to the virtual directory root and any subdirectories.

The DisableStaticFileCache property is used when multiple virtual directories are created on Universal Naming Convention (UNC) shares and are secured with individual identities and access control lists (ACLs) to fully secure files from access by unauthorized users. For this configuration scenario, not setting this property would potentially allow unauthorized access to a site’s files in the cache through other security identities.

The DisableStaticFileCache property may also be set to permit case-sensitive requests for files that are stored in virtual directories located on network file system (NFS) volumes and accessed through an NFS client, such as one provided by Services For Unix (SFU).

The static file cache may alternatively be disabled at the machine level through the registry key HKLM\System\CurrentControlSet\Services\inetinfo\parameters\DisableMemoryCache.

Disabling the static file cache will, in most cases, reduce the Web server request handling performance. However, the effect may be negligible if requests are broadly and randomly distributed across a large number of files.

Attribute Name Attribute Value

XML Data Type

Boolean

WMI Data Type

Boolean

ADSI Data Type

Boolean

ABO Data Type

Boolean

ABO Metabase Identifier

MD_VR_NO_CACHE

Attributes

INHERIT

Default Value

false

MetaFlagsEx

CACHE_PROPERTY_MODIFIED

User Type

IIS_MD_UT_SERVER

ID

3007

Configurable Locations

You can configure this property at the following locations in the IIS metabase.

Metabase Path IIS Admin Object Type

/LM/W3SVC/n/ROOT

/LM/W3SVC/n/ROOT/virtual_directory_name

IIsWebVirtualDir

Code Example

For general code examples, see Code Examples to Configure Metabase Properties.