Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Adds "Beware of HTTP ETag"

...

Asset Maintenance

...

If the caches are on (ie not on dev mode), it's the same (you don't need to recompile) but you need to clear the caches. See at ...webtools/control/FindUtilCache You might even clear only the cache where things changed (production performance).

 

Anchor
BewareOfHTTPETag
BewareOfHTTPETag

Beware of HTTP ETag

The ETag header is causing an issue with browser cache not being updated when the server has been updated. Actually a weak ETag, see http://en.wikipedia.org/wiki/HTTP_ETag

Seems like tomcat’s DefaultServlet will only serve weak ETag’s even though tomcat7+ does have code for strong ETag but is never used and there is no documentation on how to set it

A possible solution is to remove If-None-Match request header and ETag response header in apache http server

RequestHeader unset If-None-Match

Header unset ETag