If a Dataversion from the DAM AssetService is requested through a dispatcher, all further requests can return a wrong version as the dispatcher returns a cached reply.
Imho Dataversion call should never be cached (e.g. through Header "Dispatcher": "no-cache")
makes sense definitely.
probably we disable caching not only for dispatcher, but for other downstream proxies as well, e.g. via http://wcm.io/wcm/commons/apidocs/io/wcm/wcm/commons/caching/CacheHeader.html#setNonCachingHeaders-javax.servlet.http.HttpServletResponse-
Pullrequest:
https://github.com/wcm-io/wcm-io-dam/pull/1
thanks, i've merged it and updated the unit test
Any chance for a release next week? We'd love to include this.
release 1.2.0 is on maven central