Re: JSR311: gzip encoding

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Tue, 31 Mar 2009 10:39:34 +0200

On Mar 31, 2009, at 10:11 AM, Julian Reschke wrote:

> Stephan Koops wrote:
>> Hi,
>> -1
>> If the accept-Encoding allows GZIP, than the JAX-RS runtime could
>> decide on its own, that it gzip the data. This it could do with all
>> encodings, that are allowe. So there is no additional annotation
>> required.
>> Ot course the runtime must set the content-encoding header, if it
>> encode the data.
>> ...
> Keep in mind that if the runtime handles this, it will also have to
> worry about Vary, and do rewriting both outgoing *and* incoming
> ETags (conditional headers!).

Since GZIP is a lossless encoding is it absolutely necessary to
rewrite the ETags?