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

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


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?


On 13.9.2011 16:09, wrote:
> Hi,
> Why does jersey include Content-Type header when response is a 304?
> According to
>, the
> response should not contain any entity headers.