Commit 462f5262 authored by Łukasz Nowak's avatar Łukasz Nowak

rapid-cdn: c->h: Implement prefer-gzip-encoding-to-backend

parent 4573ba0e
......@@ -38,7 +38,7 @@ md5sum = cba4d995962f7fbeae3f61c9372c4181
[template-frontend-haproxy-configuration]
_update_hash_filename_ = templates/frontend-haproxy.cfg.in
md5sum = 59d9ad255c00c67c6181f1929bf333c6
md5sum = b1cd67d96cce91b5173ce09a9fdc2ac8
[template-frontend-haproxy-crt-list]
_update_hash_filename_ = templates/frontend-haproxy-crt-list.in
......
......@@ -118,6 +118,9 @@ backend {{ slave_instance['slave_reference'] }}-{{ scheme }}
http-request del-header Cache-Control
http-request del-header Pragma
{%- endif %}
{%- if slave_instance['prefer-gzip-encoding-to-backend'] %}
http-request set-header Accept-Encoding gzip if { hdr(Accept-Encoding) -m sub gzip }
{%- endif %}
{%- if info_dict['path'] %}
http-request set-path {{ info_dict['path'] }}%[path]
{%- endif %} {# if info_dict['path'] #}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment