I've heard this called "auto versioning". The most common method is to include the static file's mtime somewhere in the URL, and strip it out using rewrite handlers or URL confs:
See also:
Automatic asset versioning in Django
Automatically Version Your CSS and JavaScript Files