Lucee GZip compression option ignores Accept-Encoding HTTP header

Description

The Accept-Encoding header tells the server what it is capable of decoding. Lucee seems to ignore this header because it should only Gzip the output if the header `Accept-Encoding: gzip, deflate` is sent along with the request. However regardless if this header is sent or not if the option is enabled Lucee will always Gzip the response.

Environment

None

Activity

Show:

Brandon Brown 13 September 2019 at 13:22

I don’t think it is working then. Use curl to make a request both with and without the header and you will see that without the header the response is empty but when adding the header you see the Gziped data

Zac Spitzer 13 September 2019 at 13:19
Edited

there is a check for this header

https://github.com/lucee/Lucee/blob/5.3/core/src/main/java/lucee/runtime/writer/CFMLWriterImpl.java#L408

does it also happen if you bypass any webserver and hit tomcat directly, i.e on port 8888?

Brandon Brown 13 September 2019 at 12:54

yes that is correct. I set mine inside the GUI rather than doing it inside of Application.cfc

Zac Spitzer 13 September 2019 at 08:30

Do you mean when {{this.compression = true; }} is set in application.cfc?

Details

Assignee

Reporter

Priority

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Created 13 September 2019 at 04:01
Updated 19 December 2021 at 14:19

Flag notifications