deflate.conf 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #######################################################################
  2. ##
  3. ## Output Compression
  4. ## --------------------
  5. ##
  6. ## See https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModDeflate
  7. ##
  8. server.modules += ( "mod_deflate" )
  9. ##
  10. ## mimetypes to compress
  11. ##
  12. #deflate.mimetypes = ("text/") # prefix matches all text/* Content-Type responses
  13. #deflate.mimetypes = ("text/html", "text/plain", "text/css", "text/javascript", "text/xml")
  14. deflate.mimetypes = ("text/plain", "text/html")
  15. ##
  16. ## permitted encodings
  17. ##
  18. deflate.allowed-encodings = ("brotli", "gzip", "deflate")
  19. ##
  20. ## optional
  21. ##
  22. ##
  23. ## file cache location
  24. ## lighttpd can store compressed files in cache by path and etag, and can serve
  25. ## compressed files from cache instead of re-compressing files each request
  26. ##
  27. #deflate.cache-dir = "/path/to/compress/cache"
  28. #deflate.cache-dir = cache_dir + "/compress"
  29. ##
  30. ## maximum response size (in KB) that will be compressed
  31. ## default: 131072 # measured in KB (131072 indicates 128 MB)
  32. ## Specifying 0 uses internal default of 128 MB as limit
  33. ##
  34. #deflate.max-compress-size = 131072
  35. #deflate.max-compress-size = 0
  36. ##
  37. ## minimum response size that will be compressed
  38. ## default: 256
  39. ##
  40. #deflate.min-compress-size = 256 # measured in bytes
  41. ##
  42. ## system load average limit, above which mod_deflate is temporarily disabled
  43. ##
  44. #deflate.max-loadavg = "3.50"
  45. ##
  46. ## tunables for compression algorithms
  47. ## (often best left at defaults)
  48. ##
  49. #deflate.compression-level = 9
  50. #deflate.output-buffer-size = 8192
  51. #deflate.work-block-size = 2048
  52. ##
  53. #######################################################################