You can force a "session-wide caching" if you add the session-id as a spureous parameter of the js/css file:
If you want a version-wide caching you could add some code to print the file date or similar. If you're using Java you can use a custom-tag to generate the link in an elegant way.