Re: [Openjnlp-devel] New OpenJNLP User / Some Patches
Brought to you by:
kherr
From: Nathan M. <nm...@vi...> - 2002-11-19 18:05:51
|
On Tue, Nov 19, 2002 at 11:17:32AM -0600, Kevin Herrboldt wrote: > >There's one more change I'd like to make. I might not get to it very > >quickly, but here's the remaining problem I'd like to fix: the library > >should *not* apply the same caching logic to .jnlp files that it > >applies > >to resources specified in the .jnlp files; it should just fetch the URL > >once and then use it. As is, it's issuing something like four queries > >(GET and HEAD) against the same URL - in my case causing the server to > >perform a lot of wasted work. If/when I'm able to fix this one, I'll > [...] > > Have you tried this with Java Web Start? It behaves in pretty much the > same fashion. The real answer, I believe, is to improve the > implementation of caching. I have been planning to look at implementing > "If-Modified-Since" logic so only a single request to the server needs > to be made. Thanks for the response, Kevin. I don't see how improving the cache implementation helps. To say that you're caching something implies making an initial HEAD request to decide whether to do a GET - a win for resources that are large and reasonably static, a loss for everything else. In my case, it's a big loss for the startup .jnlp document. And if you only do a GET, why bother caching a result you'll never need again? Nathan Meyers nm...@vi... |