What are people doing to make the browsers use the cache copy
unless the content is different than the last time? I am using
getLastModified to return the new time and the browser/servlet-
runner combination are not acting as expected. I could try all sorts
of combinations of things, but I thought I would ask how people
have done this sort of thing.
I have a servlet that echos to the console every time
getLastModified is called and every time doGet is called, so I know
what is happening. My manager wants the visitor to not have to
wait for a new download if it is right in cache and has not changed.
My (Netscape) preferences are to compare dates of a cached
document with those on the server with each new session,
but this is what is happening:
user action OBSERVED RESULT
----------------------------------------------------------------
reload USES AND IGNORES getLastModified: reloads
shift-reload does not use getLastModified: reloads
later use URL:POST USES AND IGNORES getLastModified: reloads
later use URL:GET USES AND IGNORES getLastModified: reloads
I could not find a setting in Jrun that could be affecting this.
What is very frustrating, is that using servletrunner in
development did not produce these results. They still weren't
as expected, but they were much better than this.
Also, I looked in the list archives and found someone describing
how to set the header in the doGet method and exit if there
had been no change (and have no getLastModified method), but
this gave me an empty document. If someone could shed some
light on the way reload really works, preferably with an example that
works, it would really help us.
Suzanne Morine
ARITEK Systems, Inc.
[EMAIL PROTECTED] <http://www.aritek.com>
(303) 713-1401 ext. 311
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html