aspose file tools*
The moose likes JNLP and Web Start and the fly likes Java WebStart 1.6.0 always cache jnlp files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Java WebStart 1.6.0 always cache jnlp files" Watch "Java WebStart 1.6.0 always cache jnlp files" New topic
Author

Java WebStart 1.6.0 always cache jnlp files

Vladimir Bezugliy
Ranch Hand

Joined: Sep 29, 2004
Posts: 33
We generate jnlp files by our servlet.
As far as I can see Java WebStart 1.6.0 move jnlp to cache and if I try to call the same jnlp then Java WebStart 1.6.0 get this jnlp file from cache not from my servlet.

I tried to set next headers in order to force not to cache jnlp files:

But it does not help us.

We do not have such problems with Java WebStart 1.4 and Java WebStart 1.5.

What header should I set in order to get generated jnlp file but not cached?
dinesh rackson
Greenhorn

Joined: Oct 22, 2007
Posts: 9
Somebody please answer to the above question...

i am facing the same issue....
manasvini jayram
Greenhorn

Joined: Oct 06, 2009
Posts: 1
Is there a solution for this? We too do not want the jnlp to be cached on the local machine
dinesh rackson
Greenhorn

Joined: Oct 22, 2007
Posts: 9
The solution:



Including the above code in the jnlp file will always get the latest jnlp file from the server.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18120
    
    8

Or if you're using a servlet to send the JNLP file to the response, you override its getLastModified() method to return that information.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Java WebStart 1.6.0 always cache jnlp files
 
Similar Threads
Problem with Cache
Ajax not getting fired sometimes
Caching Problem with JNLP
Browser back/forward problem
servlets and cache