diff --git a/templates/haproxy.cfg.tmpl b/templates/haproxy.cfg.tmpl
index 71652884ee95873bdfa703e173a0f8be9477d45f..95762dae562efe879982eb3a98a7ba4fe23a8b37 100644
--- a/templates/haproxy.cfg.tmpl
+++ b/templates/haproxy.cfg.tmpl
@@ -13,6 +13,8 @@ defaults
   option httplog
   option dontlognull
   retries 3
+  compression algo gzip
+  compression type text/html text/plain text/css application/javascript
   timeout connect 5000
   timeout client 50000
   timeout server 50000