staticFile
Describes the <staticFile> section of the configuration file for Optimizely Content Management System (CMS) versions 10 and 11.
The <staticFile>
 tag controls caching for media assets; the content produced by editors in edit view.
The Configure CMStopic describes the syntax of the configuration elements.
## <staticFile>
<staticFile cacheControl="string"
enableOutputCache="bool"
expirationTime="TimeSpan" />
### <staticFile> Element Attributes
Note
The
staticFile
element is optional. The following default configuration values are set in code and are overridden if other values are specified in theweb.config
file.
Name | Default value | Description |
---|---|---|
cacheControl | auto | The cache policy used for static files. Possible values are auto or one of the values HttpCacheability found at MSDN.com. If you set the value to auto, the actual cache policy is calculated for each request. If an authenticated user makes the request, the cache policy is HttpCacheability.Private , otherwise HttpCacheability.Public . |
enableOutputCache | false | Defines whether to use the output cache. |
expirationTime | 12:0:0 | TimeSpan that is added to DateTime.UtcNow to calculate the Expires HTTP header value. |
Updated 5 months ago
Next