[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    Re: Bug#5610: JS un/misimplemented lastModified
From:       Lars Knoll <Lars.Knoll () mpi-hd ! mpg ! de>
Date:       2000-06-26 16:28:22
[Download RAW message or body]

On Mon, 26 Jun 2000, Harri Porten wrote:

> Dawit Alemayehu wrote:
> > 
> > > Is this info available anywhere ? Shouldn't it be retrieved in
> > > kio/http/http.cc ? Can't find it in there although I wonder if it isn't
> > > needed for cache managment as well.
> > 
> > I can definitely tell you this is not an issue for kio_http as it only deals
> > with header responses and content information coming from the server.  It
> > absolutely does not care about what is in the content and it should not.  All
> > that small script is trying to do show the last date the info was modified
> > on the page to ***the user***.  If they want that same info to be used for
> > caching purpose, they would have to send it using the Last-Modified header
> > response...
> 
> That's what I meant :) In order to implement the document.lastModified
> property in JS I need the information from somewhere. To see whether
> that value is gathered anywhere in the first place I checked the IO
> slave. Since the RFC says
> 
> 13.3.1 Last-Modified Dates
> 
>    The Last-Modified entity-header field value is often used as a cache
>    validator. In simple terms, a cache entry is considered to be valid
>    if the entity has not been modified since the Last-Modified value.
> 
> I thought that it might be already used somewhere for caching purposes.
> Seems like it isn't.

Hmmm... document.lastModified is no standard DOM call. DOM by itself does
not provide information to http header information (except for cookies),
but I know that having this information in jscript is pretty standard in
other browsers. We should just be sure that giving jscript access to this
information does not have security implications.

Lars

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic