Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Browser caches Component-connector.js for custom javascript component
I am creating a javascript component, as described here: https://vaadin.com/blog/-/blogs/vaadin-7-loves-javascript-components
The problem is that my browser caches the Component-connector.js
Is there a way to disable this caching?
Have a look at: http://stackoverflow.com/questions/118884/what-is-an-elegant-way-to-force-browsers-to-reload-cached-css-js-files
...but as you're probably not changing it that often in your production environment you're probably better off to just do a Ctrl+Alt+R or something similar to clear the Cache in the Browsers you use when developing.
Also remember that caching normally is a good thing when not developing as it decreases bandwith-usage.
thanks! i added a '-v<number>.js' suffix to the filename, which I increment after a change. seems to work.