FWIW, I see the same behavior. The container here is JBoss 4.2.3. This is a PUT method with BASIC authentication. My answer is created this way:
Date exp = new Date(System.currentTimeMillis() + lifetime); return Response.noContent().expires(exp).build();
When cURL is called, these are the returned headers:
< HTTP/1.1 204 No Content < Server: Apache-Coyote/1.1 < Pragma: No-cache < Cache-Control: no-cache < Expires: Thu, 01 Jan 1970 01:00:00 CET < X-Powered-By: Servlet 2.4; JBoss-4.2.3.GA (... < Expires: Tue, 13 Mar 2012 11:08:54 GMT < Date: Tue, 13 Mar 2012 11:08:24 GMT <
source share