I would like to see what kind of redirection and header detail we get between Caddy and Tomcat.
Here we go, first is via Caddy, second is tomcat directly:
curl -kIL tomcat.mydomain.de/myapplication/login;jsessionid=48F98C5F28351AEFF17CA0A64F4D091E?1-1.IBehaviorListener.0-tabs-panel
HTTP/1.1 308 Permanent Redirect
Connection: close
Location: https://tomcat.mydomain.de/myapplication/login
Server: Caddy
Date: Fri, 19 Feb 2021 17:42:55 GMT
HTTP/2 302
cache-control: no-cache, no-store
date: Fri, 19 Feb 2021 17:42:55 GMT
expires: Thu, 01 Jan 1970 00:00:00 GMT
location: ./login;jsessionid=8EDE838A7DE22CA0D7785BF465840E3D?0
pragma: no-cache
server: Caddy
set-cookie: JSESSIONID=8EDE838A7DE22CA0D7785BF465840E3D; Max-Age=86400; Expires=Sat, 20-Feb-2021 17:42:55 GMT; Path=/myapplication; HttpOnly
HTTP/2 200
cache-control: no-cache, no-store
content-type: text/html;charset=UTF-8
date: Fri, 19 Feb 2021 17:42:55 GMT
expires: Thu, 01 Jan 1970 00:00:00 GMT
pragma: no-cache
server: Caddy
curl -kIL tomcat.mydomain.de:8080/myapplication/login;jsessionid=E2E57A30A06C9765F88648725FB5B6F7?1-1.IBehaviorListener.0-tabs-panel
HTTP/1.1 302
Set-Cookie: JSESSIONID=03C39972FAAE2712025B4311C500849B; Max-Age=86400; Expires=Sat, 20-Feb-2021 17:45:04 GMT; Path=/myapplication; HttpOnly
Date: Fri, 19 Feb 2021 17:45:04 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Pragma: no-cache
Cache-Control: no-cache, no-store
Location: ./login;jsessionid=03C39972FAAE2712025B4311C500849B?0
Transfer-Encoding: chunked
HTTP/1.1 200
Date: Fri, 19 Feb 2021 17:45:04 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Pragma: no-cache
Cache-Control: no-cache, no-store
Content-Type: text/html;charset=UTF-8
Transfer-Encoding: chunked
After everything i do i try to search the words that i don’t know in the community. This time it was Transfer-Encoding: chunked. I don’t know if this might be a problem, but there are a lot of posts with this part in it and i’m not able to find anything useful for me.