Possible Duplicate:
Css file caching
I want to ensure users always get the latest version of my code.
However setting it up so that browsers do not cache the files is bad as it would need to be loaded fresh every page view. I want to ensure it doesn't use a cached copy from a previous release. Eg. using a cached copy of the release 1.2 JS with version 1.3 site.
One way I have seen involves changing the filename on each release and linking to that different file name on each release (eg 'myscript1.3.js') This seems a lot of effort and slightly hacky.
Is there a better way to do this?