public MuServerBuilder withGzip ( long minimumGzipSize , Set < String > mimeTypesToGzip ) { this . gzipEnabled = true ; this . mimeTypesToGzip = mimeTypesToGzip ; this . minimumGzipSize = minimumGzipSize ; return this ; }
Enables gzip for files of at least the specified size that match the given mime - types . By default gzip is enabled for text - based mime types over 1400 bytes . It is recommended to keep the defaults and only use this method if you have very specific requirements around GZIP .