title: How do I stop js files being cached in IE?
body: <p>I've created a page that uses the <a href="http://ckeditor.com/" rel="nofollow noreferrer">CKEditor</a> javascript rich edit control.</p>
  
  <p>It's a pretty neat control, especially seeing as it's free, but I'm having serious issues with the way it allows you to add templates.</p>
  
  <p>To add a template you need to modify the templates js file in the CKEditor templates folder.  The documentation page describing it is <a href="http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Templates" rel="nofollow noreferrer">here</a>.</p>
  
  <p>This works fine until I want to update a template or add a new one (or anything else that requires me to modify the js file).  </p>
  
  <p>Internet Explorer caches the js file and doesn't pick up the update.  Emptying the cache allows the update to be picked up, but this isn't an acceptable solution.  Whenever I update a template I do not want to tell all of the users across the organisation to empty their IE cache.  There must be a better way!</p>
  
  <p>Is there a way to stop IE caching the js file?  Or is there another solution to this problem?</p>
  
  <p><strong>Update</strong></p>
  
  <p>Ok, I found <a href="http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.templates_files" rel="nofollow noreferrer">this section</a> in the CKEditor API that will allow me to use the "insert timestamp into the url" solution suggested by several people.</p>
  
  <p>So the script now looks like this:</p>
  
  <pre><code>config.templates_files =
  [
      '/editor_templates/site_default.js?time=' + utcTimeMilliseconds
  ];
  </code></pre>
  
  <p>Thanks for your help guys.</p>