重置Java小程序的页面重载 [英] Reset Java Applet on page reload

查看:593
本文介绍了重置Java小程序的页面重载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要退出Firefox,然后重新启动它,以使小程序刷新...它是烦人,因为我仍然编程它的类文件的更改......我失去了一些codeS,这使得它无法刷新的小程序,仍然采取从缓存???

I need to quit firefox and restart it in order for the applet to be refreshed... its anoying since i'm still programming it an the class files changes... am i missing some codes which makes it unable to refresh the applet and still take the one from the cache???

所以,我在我的网站上,一款模拟游戏,每当用户点击屏幕上滋生的军队......有一个.jar不过小程序每当我刷新页面,则previous军队仍然存在在屏幕上..我希望它被刷新(好像我们刚刚开始运行的第一次申请)。

So I have a .jar applet in my website, a simulation game that spawns army whenever user clicks on the screen... however whenever I refresh the page, the previous army are still there on the screen.. I want it to be refreshed (as if we're just starting to run the application the first time).

我已经尝试过pressing CTRL + F5但诀窍似乎并没有正常工作

I already tried pressing CTRL+f5 but the trick doesn't seem to work

我基本上想自动执行使用脚本或东西,所以它不会要求用户手工preSS一些按钮,键盘上

I'd basically like to do it automatically using scripts or something, so that it won't require user to manually press some button on the keyboard

有什么建议?

我真的AP preciate它

I'd really appreciate it

感谢您....

推荐答案

您是否尝试过prevent缓存?

Have you tried to prevent caching?


 Pragma:no-cache
 Cache-Control:no-cache
 Expires:-1

这篇关于重置Java小程序的页面重载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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