title: RESTEasy - Response with duplicated Cache-Control - Wildfly10
body: <p>I have a GET response with an image:</p>
  
  <pre><code>@GET
  @Path("{id}/thumbnail")
  public Response readThumbnailById(@PathParam("id") String id, @QueryParam("serviceContext") EIServiceContext serviceContext) throws BadRequestRestException {
      try {
          serviceContextServices.setFullContext(serviceContext);
          byte[] thumbnail = documentClientWebServices.readThumbnailById(id);
          CacheControl cc = new CacheControl();
          cc.setMaxAge(2592000);
          cc.setPrivate(true);
  
          ResponseBuilder builder = Response.ok(thumbnail,"image/png");
          builder.cacheControl(cc);
          return builder.build();
      } catch (XECMException ex) {
          throw new BadRequestRestException(ex);
      } catch (ComponentException ex) {
          XECMRestException e = new XECMRestException(ex);
          return Response.noContent().entity(e.getEiResultStatus()).build();
      }
  }
  </code></pre>
  
  <p>And I want the client browser caching my image automatically,</p>
  
  <p>But the image was not cached,</p>
  
  <p>The Response Header of Chrome show me:</p>
  
  <pre><code>HTTP/1.1 200 OK
  Content-Encoding: gzip
  Expires: 0
  Cache-Control: no-cache, no-store, must-revalidate
  Cache-Control: no-transform, max-age=2592000, private
  X-Powered-By: Undertow/1
  Server: WildFly/10
  Pragma: no-cache
  Date: Fri, 01 Jul 2016 05:57:21 GMT
  Connection: keep-alive
  Content-Type: image/png
  Content-Length: 8727
  </code></pre>
  
  <p>It is because of the duplicated Cache-Control</p>
  
  <p>How can I remove the first Cache-Control entry?</p>
  
  <p>Thanks</p>