Some browsers will not correctly cache URLs with a query, it's better to have the version be part of the URL. Here's what I did to one site:
I have the javascript in a folder called /js/ and I have a symbolic link to that folder with the version number, so the application spits out:
<script src="/js4/foo.js"></script>
In reply to Re^2: cache js code, but detect when it's changed?
by Chady
in thread cache js code, but detect when it's changed?
by bcrowell2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |