Force browser to reload applet everytime

∥☆過路亽.° 提交于 2019-12-05 02:54:34

问题


I have depolyed my applet using deployJava.js and not using or tag. So, first of all, all those questions you might think as duplicate of this questions, are not exactly duplicate.

Currently, when I refresh my page(contain applet) browser tries to reload the older applet which is causing complications like non-responsive applet. I want to force reload applet, from server and not from browser cache, every time I refresh page and that too without any manual work (like closing/reopening browser or manual browser cache delete). Is there a way to achieve it, any attribute or parameter to pass in runApplet(...) (a function in deployJava.js ), using javascript or HTML?


回答1:


Provide a unique url for your applet each time :) like your.jar?uniquehash or your.1.2.3.jar



来源:https://stackoverflow.com/questions/7661008/force-browser-to-reload-applet-everytime

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!