Here's a trick: append some junk parms to the end of the file source URL. So instead of
<script src="/Scripts/jquery.form.js" type="text/javascript"></script>
try
<script src="/Scripts/jquery.form.js?12345" type="text/javascript"></script>
As long as your app isn't processing parms on that URL (or at least not parm you added), you should force the client to download the new version.
For something more robust, try appending the current datetime before serving the file. For example, in ASP.NET,
<script src="/Scripts/jquery.form.js?<%:DateTime.Now.ToString("yyyyMMddhhmmss")%>" type="text/javascript"></script>
No comments:
Post a Comment