# Http.compression

**URL:** <https://discuss.elastic.co/t/http-compression/12859>\
**Category:** Elasticsearch\
**Created:** [July 19, 2013, 12:14pm UTC](https://discuss.elastic.co/t/http-compression/12859 "2013-07-19T12:14:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chetana](https://avatars.discourse-cdn.com/v4/letter/c/dbc845/32.png) [@Chetana](https://discuss.elastic.co/u/Chetana)\
**Post date:** [July 19, 2013, 12:14pm UTC](https://discuss.elastic.co/t/http-compression/12859/1 "2013-07-19T12:14:29Z")

</div>

After setting http.compression = true, will the compression be applied to  
both incoming http request and outgoing http response?

Thanks

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![vineeth\_mohan](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vineeth\_mohan](https://discuss.elastic.co/u/vineeth_mohan)\
**Post date:** [July 19, 2013, 12:28pm UTC](https://discuss.elastic.co/t/http-compression/12859/2 "2013-07-19T12:28:17Z")

</div>

set http.compression: true, and include this header in your  
request:

Accept-Encoding: gzip, deflate

Thanks  
Vineeth

On Fri, Jul 19, 2013 at 5:44 PM, Chetana [ambha.career@gmail.com](mailto:ambha.career@gmail.com) wrote:

> After setting http.compression = true, will the compression be applied to  
> both incoming http request and outgoing http response?
> 
> Thanks
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:25am UTC](https://discuss.elastic.co/t/http-compression/12859/3 "2017-07-06T02:25:29Z")

</div>


