HomeDev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunitySubmit a ticketLog In
GitHubNuGetDev CommunitySubmit a ticket


Describes the <staticFile> section of the configuration file for Optimizely Content Management System (CMS) versions 10 and 11.

The  tag controls caching for media assets; the content produced by editors in edit view.

The Configure CMStopic describes the syntax used in the description of the configuration elements.

## &lt;staticFile&gt;

    <staticFile cacheControl="string"
                expirationTime="TimeSpan" />

### &lt;staticFile&gt; Element Attributes



The staticFile element is optional. The following default configuration values are set in code and are overridden if other values are specified in the web.config file.

NameDefault valueDescription
cacheControlautoThe 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 is calculated for each request. If the request is made by an authenticated user, the cache policy will be HttpCacheability.Private, otherwise HttpCacheability.Public.
enableOutputCachefalseDefines if the output cache is used.
expirationTime12:0:0TimeSpan that is added to DateTime.UtcNow to calculate the Expires HTTP header value.