I think the traditional way is to encode the version in the URL:
<script type="text/javascript" src="/js/foo/2.37/foo.js"></script>
That way, when you need a new version, you automatically get it. You should make all older version URLs redirect to the newest version.
In reply to Re: cache js code, but detect when it's changed?
by Corion
in thread cache js code, but detect when it's changed?
by bcrowell2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |