Hello, Jon. If you like, you may open a support case for this, and we'll have a look.
Original Message:
Sent: Feb 09, 2025 07:13 PM
From: Jon Schendt
Subject: Question about Content-Encoding always gzip
Joe, I was able to recreate the issue I'm seeing on my home network. Please see attached screenshot.
If I navigate through the Gateway to the same webserver, I get a Content-Length of 2886bytes, and Content-Encoding of gzip. If I navigate directly to the webserver, I get a Content-Length of 11130 and no Content-Encoding. My policy explicitly sets accept-encoding to identity and doesn't compress output.
Original Message:
Sent: Feb 07, 2025 05:56 PM
From: Jon Schendt
Subject: Question about Content-Encoding always gzip
Joe, thank you for the responses! I didn't mention it, but I did also set the Accept-Encoding to identity, and got the same output. I'll see if I can replicate it on a different system and upload some screenshots.
Get Outlook for Android<https: aka.ms aab9ysg>
Original Message:
Sent: 2/7/2025 5:24:00 PM
From: Joseph Fry
Subject: RE: Question about Content-Encoding always gzip
Of course, I hit send and look at something I had just read and realize that I misunderstood... if you leave off the Accept-Encoding header, than you are saying that any encoding is acceptable. So your customer needs to include an "Accept-Encoding: Identity" to tell the server (the gateway in this case) not to encode the data.
Per RFC: https://datatracker.ietf.org/doc/html/rfc7231#section-5.3.4
A request without an Accept-Encoding header field implies that the user agent has no preferences regarding content-codings. Although this allows the server to use any content-coding in a response, it does not imply that the user agent will be able to correctly process all encodings.
So it appears that if the client (user agent) doesn't specify, the server (gateway) is free to choose.
Different browsers have different defaults... I found this in the comments section of a site from 2018, so its probably out of date but you get the point:
- Chrome: Accept-Encoding: identity;q=1, *;q=0.
Safari: Accept-Encoding: identity.
Firefox: No Accept-Encoding header.
Edge: Accept-Encoding: gzip, deflate, br.
Interesting rabbit hole you sent me down. But I am still 99% sure that the RIGHT answer is to have the client include a "Accept-Encoding: identity" header.
Original Message:
Sent: Feb 05, 2025 04:17 PM
From: Jon Schendt
Subject: Question about Content-Encoding always gzip
I'm seeing some strange behavior that a customer recently brought to my attention.
When browsing to a file not going through the Gateway, I get the file without any encoding (no "Content-Encoding" header in the response). When I navigate to that same file going through the Gateway, I get "Content-Encoding: gzip"). I've confirmed that the back-end server isn't compressing that output, and I've modified the "Accept-Encoding" request header to omit gzip right before the request gets sent out. My customer doesn't want any additional compression, and I'm a little stumped. Any ideas?
</https:>