The DisableStaticFileCache property specifies the caching of static files for a directory. 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\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.
You can configure this property at the following locations in the IIS metabase.
IIS Admin Object Type