upb-uc4 / lagom-core

Repository for the micro service backend using lagom.
Apache License 2.0
6 stars 0 forks source link

Add min size to gzip #307

Closed bastihav closed 4 years ago

bastihav commented 4 years ago

Describe the bug {"versionNumber":"v0.8.2"} (26 Bytes) is compressed to H4sIAAAAAAAA/6tWKkstKs7Mz/MrzU1KLVKyUioz0LPQM1KqBQCFk8npGgAAAA== (46 Bytes), which almost doubles the size. We should add a minimum size for gzip. A value between 150 Bytes and 1000 Bytes is recommended.

david-buderus commented 4 years ago

We need to set something like

play.filters.gzip.threshold = 500

in our application.conf