Salvager resource and browser's cache

Frederic Crozat ISIMA writes:
 > Hi,
 > 
 > I've encounter a little problem with the Salvager resource and some browsers
 > (IE and Netscape) when I try to see the status of the Salvager resource 
 > (http://host/Admin/Salvager). Often, when I try to refresh the page, my
 > browser keeps showing the old one and doesn't connect to Jigsaw. It uses its
 > own caching scheme (it is set to check pages only one time per session)
 > but it should check it if I reload it but it refuses. 
 > 
 > I've added the following "no caching" code (from tutorial) at the end of
 > the SalvagerResource source :
 > public Reply createDefaultReply(Request request, int status) {
 >         Reply reply = super.createDefaultReply(request, status);
 >         reply.setNoStore(true);
 >         // Be friendly to HTTP/1.0 caches too:
 >         reply.addPragma("no-cache");
 >         return reply;
 >     }
 > 
 > and the problem is gone !! 

That's indeed the real fix. However, you don't need to patch the code
(I think setting the relevant attribute through the configuration
should be enough).

 > I'm currently using Jigsaw alpha 5 and I think you should add this to
 > next beta version.
 > 
 > I've also seen in the httpd source that the default timeout values given
 > in the "api" file aren't those used in the code. For example, Keep_Alive
 > Timeout is supposed to be 10000 ms but in the code, it's 1200000 !!
 > Which values are correct ? 

The one in the code ;-)

Anselm.

Received on Wednesday, 27 August 1997 05:19:10 UTC