StaticContentConfig
A config for serving static content
Functions
Configures CacheControl for requested static content. For files, Resource is a requested File. For resources, Resource is a URL to a requested resource.
Configures ContentType for requested static content. If the block returns null
, default behaviour of guessing ContentType from the header will be used. For files, Resource is a requested File. For resources, Resource is a URL to a requested resource.
Enables automatic response to a HEAD
request for every file/resource that has a GET
defined.
Configures HttpHeaders.ETag for requested content. For files, Resource is a requested File. For resources, Resource is a URL to a requested resource.
Configures file extension fallbacks. When set, if a file is not found, the search will repeat with the given extensions added to the file name. The first match will be served.
Configures HttpHeaders.LastModified for requested static content. For files, Resource is a requested File. For resources, Resource is a URL to a requested resource.
Enables pre-compressed files or resources.