You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lighttpd1.4/doc/config/conf.d/deflate.conf

63 lines
1.6 KiB
Plaintext

#######################################################################
##
## Output Compression
## --------------------
##
## See https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModDeflate
##
server.modules += ( "mod_deflate" )
##
## mimetypes to compress
##
#deflate.mimetypes = ("text/") # prefix matches all text/* Content-Type responses
#deflate.mimetypes = ("text/html", "text/plain", "text/css", "text/javascript", "text/xml")
deflate.mimetypes = ("text/plain", "text/html")
##
## permitted encodings
##
deflate.allowed-encodings = ("brotli", "gzip", "deflate")
##
## optional
##
##
## file cache location
## lighttpd can store compressed files in cache by path and etag, and can serve
## compressed files from cache instead of re-compressing files each request
##
#deflate.cache-dir = "/path/to/compress/cache"
#deflate.cache-dir = cache_dir + "/compress"
##
## maximum response size (in KB) that will be compressed
## default: 131072 # measured in KB (131072 indicates 128 MB)
## Specifying 0 uses internal default of 128 MB as limit
##
#deflate.max-compress-size = 131072
#deflate.max-compress-size = 0
##
## minimum response size that will be compressed
## default: 256
##
#deflate.min-compress-size = 256 # measured in bytes
##
## system load average limit, above which mod_deflate is temporarily disabled
##
#deflate.max-loadavg = "3.50"
##
## tunables for compression algorithms
## (often best left at defaults)
##
#deflate.compression-level = 9
#deflate.output-buffer-size = 8192
#deflate.work-block-size = 2048
##
#######################################################################