I'm working on JavaScript for a site, developing with Firefox, and when I refresh the page, I don't see my changes. The JavaScript file is in an external file. I reloaded and refreshed the page several times, but the old JavaScript file was still cached. Finally, I loaded the JavaScript page in the browser directly, saw the old script, hit 'reload', and saw my changes.
How can I clear cached external JavaScript files? I'll need to know this also when I tell the client that the changes are made, so that they aren't seeing the old cached functionality.
1. Assume you are at the website www.foo.com 2. A JS file, bar.js, is included and stored at the root 3. The site is caching an old version of the site 4. Display the JS file directly in the browser with a random query string (e.g. www.goo.com/bar.js?random=random) 5. The browser is now using the updated version of the JS file. – Jeremy Ray Brown Jul 17 '14 at 16:47