IPrecompressOptions
Properties
Section titled “Properties”minLength?
Section titled “minLength?”
readonlyoptionalminLength?:number
Files shorter than this get no copy. Match the server’s gzip_min_length. Defaults to 20.
never?
Section titled “never?”
readonlyoptionalnever?: readonlystring[]
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.
types?
Section titled “types?”
readonlyoptionaltypes?:Readonly<Record<string,string>>
Extensions (no dot, lower case) that get a copy, with their Content-Type. Defaults to PRECOMPRESS_TYPES.