PhoenixBakery.Gzip (phoenix_bakery v0.1.1) View Source
Replacement of default Phoenix.Digester.Gzip that provides better default
compression ratio (defaults to maximum possible) instead of default option that
compromises between compression speed and compression ratio.
It uses built-in zlib library, which mean, that there is no external
dependencies and it will work OotB on any installation.
Configuration
PhoenixBakery.Gzip provides 3 different knobs that you can alter via
application configuration:
config :phoenix_bakery, :gzip_opts, %{
level: :best_speed, # defaults to: `:best_compression`
window_bits: 8, # defaults to: `15` (max)
mem_level: 8 # defaults to: `9` (max)
}The shown above are defaults. For description of each option check zlib
documentaion