强制浏览器每次都重新加载小程序 [英] Force browser to reload applet everytime

查看:30
本文介绍了强制浏览器每次都重新加载小程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 deployJava 解聚了我的小程序.js 而不是使用或标记.所以,首先,所有这些问题你可能认为这是重复的问题,并不完全重复.

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.

目前,当我刷新页面(包含小程序)时,浏览器会尝试重新加载旧的小程序,这会导致诸如无响应小程序之类的并发症.我想在每次刷新页面时强制从服务器而不是浏览器缓存重新加载小程序,而且无需任何手动工作(例如关闭/重新打开浏览器或手动删除浏览器缓存).有没有办法实现它,任何属性或参数传入 runApplet(...) (deployJava.js ),使用 javascript 还是 HTML?

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?

推荐答案

每次为你的小程序提供一个唯一的 url :) 像 your.jar?uniquehashyour.1.2.3.jar

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

这篇关于强制浏览器每次都重新加载小程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆