A Brotli filter for the playframework
Add play-brotli-filter
as a dependency:
libraryDependencies ++= Seq(
"com.gu" %% "play-brotli-filter" % "0.9",
)
Currently the only parameter you can configure is quality, which defaults to 11
.
play.filters {
# Brotli filter configuration
brotli {
# The compression-speed vs compression-density tradeoffs. The higher the quality, the slower the compression. Range is 0 to 11
quality = 11
}
}