You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Uday Kumar <ud...@indiamart.com.INVALID> on 2023/07/01 02:05:59 UTC

Re: Unexpected Cache-Control Header Transmission in Dual-Server API Setup

Okay Thanks 👍

On Sat, Jul 1, 2023, 00:42 Christopher Schultz <ch...@christopherschultz.net>
wrote:

> Uday,
>
> On 6/30/23 06:57, Uday Kumar wrote:
> > *Hello,*
> >
> > *Observations:*
> > *1. Issue not replicated through integrated tomcat of Spring-boot when
> the
> > application was started in IntelliJ IDE*
> > *2. Issue was replicated by installing Tomcat 9 on my local machine and
> > building the corresponding war file.*
> >
> > *In both the above cases, I use the same code and the same HTTP Client (*
> > *java.net.HttpURLConnection**) for calling other API which is on another
> > server.*
> >
> > *I even tried using **org.springframework.web.client.RestTemplate *client
> > for calling other API, but the same observations were seen as mentioned
> > above.
>
> I'm not sure what else to tell you. When your code makes outgoing HTTP
> connections, no Tomcat code is involved *at all*. Tomcat does not change
> any JVM-wide settings. Tomcat does not intercept any outgoing
> connections for observation, modification, or adulteration.
>
> You should attach a debugger to your process to determine where the
> Cache-Control header is being added.
>
> It is not being added by Tomcat.
>
> -chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>