staticFile
The <staticFile> tag controls caching for media assets; the content produced by editors in edit view.
The Configure CMSConfigure CMS topic 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 the web.config file.
Name | Default value | Description |
|---|---|---|
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. | |
false | Defines whether to use the output cache. | |
12:0:0 | TimeSpan that is added to DateTime.UtcNow to calculate the Expires HTTP header value. |