3

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?

Community
  • 1
  • 1
Umer Hayat
  • 1,993
  • 5
  • 31
  • 58

1 Answers1

6

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

Anton S
  • 12,750
  • 2
  • 35
  • 37
  • The page, after a time interval, lets say at mid-night, refreshes itself automatically to load any newer version of applet. Thanks for the humor anyway :) – Umer Hayat Oct 05 '11 at 12:13
  • @Umer Hayat: I think this is a valid answer, just create a new generic link every time you deploy a new applet (e.g. append a release number to the applet's JAR). This approach works for other resources as well, like CSS, JavaScript. – home Oct 05 '11 at 12:39
  • 1
    Or let your server deliver *.jar resources with a no-cash HTTP header. – Angel O'Sphere Oct 05 '11 at 14:45