Slava Kozlov wrote:
>Throwing my 2 cents into the pot....
>Geoff wrote:
>> Craig R. McClanahan wrote:
>> >
>> >Geoff, I haven't used getLastModified() a lot -- it's pretty useless for
>> 100%
>> >dynamic content -- but it seems to do what I wanted when I used it.  See
>> >further comments below.
>>
>> Yes, exactly. Here's my reasoning that follows from this...
>>
>> 1) getLastModified is pretty useless for dynamic content and
>
>To reiterate what Craig R. McClanahan said: it's useless only for 100%
dynamic
>content. My opinion is that most content isn't 100% dynamic. And if a
site's
>usage indicates that a user will request the same information often between
>information updates, it makes sense to cache it on the browser's end to
save
>both the expense of reprocessing it and the time to transmit it to the
browser
>(or proxy server). No? This is not an absolute, a developer should only
take the
>time to implement caching only if it improves performance in a real-world
>setting.

[snip]

>The point of the LM cache is to put the calculation burden on doGet() and
to use
>a fast getLM() method in order to avoid using doGet at all.

I think you mistake my meaning. I'm not saying that the concept of a LM
cache is wrong, just that I don't like the particular way that getLM is
implemented. This followed from me trying to write a servlet that used this
method and then deciding that it was easier to write my own impl...

>> 3) getLastModified() is effectively useless in most situations, and it
>> should be deprecated, and
>
>No, not another way to ruin my old code. :-)

Notice I said "deprecate", not deprecate and _disable_ as some features of
this API have been the victim of. This means it'd still work if you wanted
to use it.

Geoff

___________________________________________________________________________
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

Reply via email to