tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 52517] New: Server affecting URLConnector's defaultUseCache settings
Date Tue, 24 Jan 2012 15:41:10 GMT

             Bug #: 52517
           Summary: Server affecting URLConnector's defaultUseCache
           Product: Tomcat 6
           Version: unspecified
          Platform: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
    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:
   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

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message