I have a @JavaScript annotation in my application to load a .js file from the classpath.
Now I've made an update to the file and redeployed (locally), but I always get the old version back. I've tried reloading everything (ctrl+R, ctrl+F5) but that doesn't work and also I wouldn't want the users to have to do that.
A trick I used in the past (without Vaadin) was to append a request parameter with the version (e.g. ?version=1) and update that so that the URL changes. But apparently that isn't allowed for the @JavaScript annotation (Vaadin doesn't even try to load the file).
find
for the file in your target-dir? could be, that it's there several times (e.g. once from your ide and once from your build tool). if both are in the classpath only one get picked up. – Threnodetarget
folder and it had the new contents, but still I was getting the old contents in the browser. – Cordey