Hi folks,
I wrote some stuff with
servlet filters to get full control over caching effects for static vs. dynamic content in a
Java web application. Everything seems to work fine right now except for this nasty ETag headers.
Tomcat simply overrides existing ETag headers with its own weak ETags. That's definitely not what I want.
This seems to be a known issue with Tomcat and the only useful hint I found on how to solve this issue is to comment out the corresponding parts in the source code of Tomcat's default servlet. This is definitely also not what I want. Is there really no alternative way to configure Tomcat not to produce its own ETag headers? At least you can set a system property to prevent automatic insertion of an Expires header but I found nothing similar for ETags. Any help would be appreciated!!!
And YES, I know there are better ways to control caching of static contents, for example with Apache as a reverse proxy. But it's a requirement that it should work THIS way
Thanks in advance!
Marco