ResolverCachingMode Enumeration
.NET Framework 4
Represents the mode of caching to use when resolving URLs. This setting affects how quickly extension-less URLs can be mapped back to their corresponding files (such as .aspx).
Namespace: Microsoft.AspNet.FriendlyUrls
Assembly: Microsoft.AspNet.FriendlyUrls (in Microsoft.AspNet.FriendlyUrls.dll)
Syntax
'Declaration
Public Enumeration ResolverCachingMode
'Usage
Dim instance As ResolverCachingMode
public enum ResolverCachingMode
public enum class ResolverCachingMode
type ResolverCachingMode
public enum ResolverCachingMode
Members
Member name | Description | |
---|---|---|
Static | Build a list of files at application startup. This mode of operation is appropriate for sites where files are not added or removed at runtime.
This is the default mode of operation. |
|
Dynamic | Build a list of files as requests come in, and update that list as files in the site change. This mode of operation uses more memory than a static cache, but it is appropriate for sites where files or directories are added or removed at runtime. | |
Disabled | Don't perform any caching. Always query the file system directly every time a request to a friendly URL comes in. |
Remarks
If a web site is running with <compilation debug="true" />, the cache is automatically disabled.