So I'm building a javascript library meant to be loaded by external domains. I'm looking for a good way to do auto-versioning for this. Ideally, the external domain should be able to just write " type="text/javascript"> and somehow have that version correctly.
The best solution I can think of is to have the point to a page, built using a server-side language, that dynamically includes the right javascript libraries with the right versioning. The problem with this is that it requires the javascript to be dynamically loaded and means that our server will be hit on every load (ie it can't be cached).
Any ideas?