StaticContentConfig
A config for serving static content
Functions
Link copied to clipboard
Configures CacheControl for requested static content. For files, Resource is a requested File. For resources, Resource is a URL to a requested resource.
Link copied to clipboard
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.
Link copied to clipboard
Enables automatic response to a HEAD
request for every file/resource that has a GET
defined.
Link copied to clipboard
Link copied to clipboard
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.
Link copied to clipboard
Link copied to clipboard
Enables pre-compressed files or resources.