tschulte/gradle-jnlp-plugin

Downgrade does not work without javaws -uninstall

tschulte opened this issue · 1 comments

The Servlet currently does use the last modified time of the generated jnlp file. This is OK, as long as the new version is always going up in time. But if for some reason the deployed version is older (e.g. due to a downgrade because of a bug), the server will answer the request of javaws containing the HTTP-Header "If-Modified-Since" with a HTTP 304 Not-Modified. Thus javaws will still start the old (newer, but buggy) version.

The Servlet should use an etag instead of Last-Modified for non-version-based downloads.

It seems, javaws does not support etags. Therefore it does not make sense to implement etag support in the servlet.