in reply to cache js code, but detect when it's changed?
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: cache js code, but detect when it's changed?
by bcrowell2 (Friar) on Oct 06, 2007 at 20:22 UTC | |
A reply falls below the community's threshold of quality. You may see it by logging in. |