Reputation: 41
When I update and reset my web project
, client browser were unable get the newest js
files.
So how to solve this problem.
I will appreciate that you can give me some advice
Upvotes: 4
Views: 961
Reputation: 782
First, check your js file had updated in tomcat.
if the file is newest in tomcat.
The reason is the broswer cache.try to clear the brower cache.
If you use chrome,you can try this:
I usually use a chrome plugin to clear cache,The plugin named Clear Cache
,you can find this plugin in chrome webstore.
Upvotes: 1
Reputation: 107
or load js file like below
<script>
document.write("<script type='text/javascript' src='/js/test.js?"+Math.random();+"'></script>");
</script>
Upvotes: 0