Properties

Controls which files are processed for asset pre-compression.

Can be used to define the "Cache-Control" header for "public" assets.

Can be used to set headers that should always be sent in their respective use-case (Asset, SSR).

preCompressed?: boolean

Controls whether the static assets should be pre-compressed or if they should be dynamically compressed at runtime.

Default

true

Can be defined to control which requests the server should handle.

Can be defined to configure the server.

supportedEncodings?: EncodingToken[]

Controls which compression algorithms are available.

Default

['br', 'gzip', 'deflate']