users@jersey.java.net

[Jersey] Re: Not Modified 304 response includes Content-Type header

From: Jakub Podlesak <jakub.podlesak_at_oracle.com>
Date: Wed, 14 Sep 2011 08:40:06 +0200

Hi,

That happens if you attach @Produces annotation
to your resource method even when populating
the returned Response programmatically, right?

Is it not possible for you to remove the @Produces annotation
and deal with the response media type when building the response?

~Jakub

On 13.9.2011 16:09, clum85_at_gmail.com wrote:
> Hi,
>
> Why does jersey include Content-Type header when response is a 304?
> According to
> http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.5, the
> response should not contain any entity headers.
>