StaticFileOption
Index
Properties
optionalalias
optionalbuffer
store the files in memory instead of streaming from the filesystem on each request.
optionalcacheControl
optional cache control header. Overrides options.maxAge.
optionaldir
the directory you wish to serve
optionaldynamic
dynamic load file which not cached on initialization.
optionalfilter
filter files at init dir, for example - skip non build (source) files. If array set - allow only listed files
optionalgzip
when request’s accept-encoding include gzip, files will compressed by gzip.
optionalmaxAge
cache control max age for the files, 0 by default.
optionalmaxFiles
cache control max age for the files, 0 by default.
optionalprefix
url prefix
optionalpreload
caches the assets on initialization or not, default to true. always work together with options.dynamic.
object map of aliases