Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 307BD9CD2 for ; Tue, 24 Jan 2012 15:41:38 +0000 (UTC) Received: (qmail 46777 invoked by uid 500); 24 Jan 2012 15:41:37 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 46671 invoked by uid 500); 24 Jan 2012 15:41:36 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 46661 invoked by uid 99); 24 Jan 2012 15:41:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jan 2012 15:41:36 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.115] (HELO eir.zones.apache.org) (140.211.11.115) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jan 2012 15:41:33 +0000 Received: by eir.zones.apache.org (Postfix, from userid 80) id C871E3CB70; Tue, 24 Jan 2012 15:41:12 +0000 (UTC) From: bugzilla@apache.org To: dev@tomcat.apache.org Subject: DO NOT REPLY [Bug 52517] New: Server affecting URLConnector's defaultUseCache settings Date: Tue, 24 Jan 2012 15:41:10 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Tomcat 6 X-Bugzilla-Component: Catalina X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kamil.toszek@gmail.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@tomcat.apache.org X-Bugzilla-Target-Milestone: default X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=52517 Bug #: 52517 Summary: Server affecting URLConnector's defaultUseCache settings Product: Tomcat 6 Version: unspecified Platform: PC Status: NEW Severity: normal Priority: P2 Component: Catalina AssignedTo: dev@tomcat.apache.org ReportedBy: kamil.toszek@gmail.com Classification: Unclassified After migrating to Tomcat 6 (from Tomcat 5), connections made by servlets using URLConnection have additional request headers -> "Cache-Control"and "Pragma". After looking at the OpenJDK6 implementation of URLConnection class, in private void writeRequests() function I have found this lines: if(!getUseCaches()) { requests.setIfNotSet("Cache-Control", "no-cache"); requests.setIfNotSet("Pragma", "no-cache"); } Now, urlconnection.getDefaultUseCaches on Tomcat 5 returns null, but on Tomcat 6 the same code returns false, thus Tomcat 6 affects behavior of Java Runtime Environment. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org