On 28/06/2023 16:49, Uday Kumar wrote:
Hello Mark,
In continuation of my previous mail,
*Just in a while, I could replicate the issue on my local machine by
installing Tomcat 9 explicitly [Now, I could see cache-control headers are
being transmitted to Varnish of server2]*
*Point to note here,*
*Issue not replicated through integrated tomcat of Spring-boot*
*Issue replicated by installing Tomcat 9 on my local machine and building
corresponding war files.*
*I suspect, there is the configuration of Tomcat which is responsible for
setting Cache-control and pragma header by default to outgoing requests.*
This is absolutely, categorically NOT the case. Tomcat has NOTHING to do
with outgoing HTTP requests. This is an issue with your configuration of
whatever HTTP client llibrary you are using to make these requests.
*Kindly check and let me know if I am missing anything.*
This part of my previous reply:
"Tomcat is not an HTTP client and provides no HTTP client API. You need
to look at whatever code is issuing the request from Tomcat on Server1
to Varnish on Server2. The one thing I can be certain of is that no
Tomcat code is involved. "
Mark
We have tried replicating the issue by using a local machine (spring-boot
application as an API-1 with integrated tomcat) to hit API-2 which is on
Server2, in this case, Cache-Control headers are *not being transmitted*
to Varnish of server2.
Thanks & Regards,
Uday Kumar
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org