cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ovidiu Predescu <ovi...@apache.org>
Subject Re: Source.getLastModified() doesn't work
Date Fri, 24 May 2002 07:17:28 GMT
Michael, Carsten,

Thanks a lot for the information, I completely forgot about the
refresh() method. Seems to be a long time since I worked on
refactoring the Source interface...

Thanks,
Ovidiu

On Fri, 24 May 2002 09:00:41 +0200, "Carsten Ziegeler" <cziegeler@s-und-n.de> wrote:

> > -----Original Message-----
> > From: Michael Hartle [mailto:mhartle@hartle-klug.com]
> > Sent: Friday, May 24, 2002 7:19 AM
> > To: cocoon-dev@xml.apache.org
> > Subject: Re: Source.getLastModified() doesn't work
> > 
> > 
> > Ovidiu Predescu wrote:
> > 
> > >On Thu, 23 May 2002 21:10:01 -0400, Peter Royal 
> > <proyal@apache.org> wrote:
> > >
> > >>On Thursday 23 May 2002 08:59 pm, Ovidiu Predescu wrote:
> > >>    
> > >>
> > >>>It appears the getLastModified() method doesn't work for file:
> > >>>URLs. Seems like the Source is caching this information and always
> > >>>returns the same time stamp, without bothering to check the actual
> > >>>file. Any ideas what's going on?
> > >>>      
> > >>>
> > >>You need to call discardValidity() to refresh.
> > >>    
> > >>
> > >But Cocoon's Source interface doesn't have such a method. What's the
> > >solution then?
> > >
> > If I am not mistaken, the "old" Cocoon Source is a ModifiableSource, so 
> > a refresh() should help.
> > 
> Exactly. The last modification date is cached until the refresh() method
> is called to avoid multiple HEAD requests if someone is called the
> getLastModified() method more than once.



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message