This type contains the following members.

public class MediaOptions
Inheritance:
ObjectMediaOptions

Constructors

MediaOptions()

Properties

BaseUrl Sets the base url that media is served from. Defaults to "/media". May be a fully qualified URI for serving off a CDN.
ImageCachePath Sets the local file root path that images are cached to, relative to the website root. Defaults to "App_Data/cache". Set to empty to disable image caching (not recommended).
DefaultQuality
PreferWebP If set to true, raster images are served in WebP format if both the user agent and the image processor support it. Defaults to true.
CacheControlMaxAge Gets or sets the image maximum cache age in seconds. Defaults to 2592000 (30 days).