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: [email protected]
ReportedBy: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]