Hi,
I was investigating an issue with our single-page app that is using
Tomcat on server side. The app sometimes did not load in browser. It
turned out Chrome can requests client application bundle with header
like this:
If-None-Match: W/"101052-1724152266000"-gzip
Default servlet rejects such request with HTTP Status 400 – Bad Request.
To test it I installed Tomcat 9.0.93 and queried default ROOT application:
$ curl -sw '%{http_code}\n' --output /dev/null -H 'If-None-Match:
W/"101052-1724152266000"-gzip' localhost:8080/tomcat.css
400
Problematic part is "-gzip", without it it works:
$ curl -sw '%{http_code}\n' --output /dev/null -H 'If-None-Match:
W/"101052-1724152266000"' localhost:8080/tomcat.css
200
I have no idea whether the header is RFC-valid or not, but since it is
used by major browser/s and status 400 can break things, is there some
option how to silently ignore invalid(?) If-None-Match?
Thanks
Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]