Skip to content

IPrecompressOptions

readonly optional minLength?: number

Files shorter than this get no copy. Match the server’s gzip_min_length. Defaults to 20.


readonly optional never?: readonly string[]

Paths under the root that never get a copy: a file the server rewrites at start (a copy would describe a file nobody serves), or one it never serves.


readonly optional types?: Readonly<Record<string, string>>

Extensions (no dot, lower case) that get a copy, with their Content-Type. Defaults to PRECOMPRESS_TYPES.