Prevent Javascript From Being Cached In Browser
I'm currently working on a webapp and the Javascript is revised fairly often. However, the changes don't occur until the browser cache is refreshed manually. Is there a way to impl
Solution 1:
You can put something like ?2352352
at the end of your JS file. So something like
<scriptsrc='myfile.js?20457207'></script>
Where the number randomizes, forcing the browser to think it's a different file.
Post a Comment for "Prevent Javascript From Being Cached In Browser"