我和我的朋友正在开发一个小游戏,我们想与朋友分享开发阶段。因此,我制作了这个小页面:http://people.scs.carleton.ca/~manders8/game.html
现在只有一个 .class 文件需要更新,但是由于某种原因它总是加载旧版本。我知道有一种方法可以关闭 Java 缓存,但我的朋友们不是那么熟练。并且,为了让人们玩你的游戏,它应该非常简单,并且不需要像屏幕截图一样的 5 步骤来试玩。
这是我在标签中使用的代码:
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Cache-Control" content="no-cache">
因为我以为这可能与浏览器有关,但这没有帮助。
这是我的代码
<applet code="com.murderbody.prototype.TitleScreen.class" codebase="http://people.scs.carleton.ca/~manders8/content/" width=640 height=380></applet>
从小程序更改为:
<object type="application/x-java-applet;version=1.5" width="640" height="380">
<param name="codebase" value="http://people.scs.carleton.ca/~manders8/content/">
<param name="code" value="com.murderbody.prototype.TitleScreen.class">
<param name="cache_option" value="no">
</object>