This content is archived. See latest version here.

Last updated: Jul 09 2014

This document describes the configuration of the staticFile section. Refer to the Configuration section for an explanation of the syntax used in the description of the configuration elements.

<staticFile>

XML
<staticFile cacheControl="string"
            enableOutputCache="bool"
            expirationTime="TimeSpan" />

<staticFile> Element Attributes

Note The staticFile element is optional. Default configuration values as below are set in code, these values will be overriden if other values are specified in the config file.
NameDefault ValueDescription
cacheControl auto The cache policy to be used for static files. Possible values are auto or one of the values HttpCacheability found att MSDN.com.
If the value is set to auto the actual cache policy to be used will be calculated for each request. If the request is made by an authenticated user the cache policy will be HttpCacheability.Private, otherwise HttpCacheability.Public.
enableOutputCache false Defines if the output cache is used.
expirationTime 12:0:0 TimeSpan that is added to DateTime.UtcNow to calculate the Expires HTTP header value.

Comments