tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Boris Petrov <bo...@profuzdigital.com>
Subject Tomcat sets `Content-Length: 0` for 304 responses on HTTP/2
Date Thu, 12 Sep 2019 14:19:30 GMT
Hi,

I have two issues with the "default" Tomcat configuration (the only
thing I've changed from it is that I've added an `UpgradeProtocol`
directive and SSL certificates). Tomcat version is 9.0.24.

The first one is the one I've written in the subject - for all 304
responses Tomcat is adding a `Content-Length: 0` header. This happens
only on HTTP/2. Any suggestions how to debug this are appreciated.

The second issue is that Tomcat sets the same ETag header for a static
file that changes between updates of my WAR. That is, I have a file
called `git-revision.json` in which there is the build-date and the
revision-number of the application. This file changes with every new
release of our WAR. Note that the length of the file is always the same.
And Tomcat *ALWAYS* puts the same ETag header for it -
`W/"89-318204000000"` (89 is the file length, not sure about the rest).
Why is Tomcat not changing the ETag header? This breaks for clients
which have already loaded it and don't get the new version because 304
is returned.

Thanks in advance,

Boris Petrov


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message