Re: Apache::ASP & HTTP's validation model

2000-02-14 Thread Matt Sergeant
On Mon, 14 Feb 2000, Dmitry Beransky wrote: > But meets_condition is a file specific API and will not work for data > coming from a database or a subrequest, etc. I don't think there's anything file specific about meets_condition. Simply call $r->update_mtime() with the time given in your data o

Re: Apache::ASP & HTTP's validation model

2000-02-14 Thread Joshua Chamas
Dmitry Beransky wrote: > > The immediate problem I see with this approach, is that > $Response->LastModified() can only be called once per request. Consider a > situation when a single asp file has multiple includes and each include is > generated from a separate datasource. In this case, each

Re: Apache::ASP & HTTP's validation model

2000-02-14 Thread Dmitry Beransky
But meets_condition is a file specific API and will not work for data coming from a database or a subrequest, etc. Dmitry At 01:08 AM 2/14/00, Matt Sergeant wrote: >Isn't this handled by meets_condition? > >On Mon, 14 Feb 2000, Joshua Chamas wrote: > > What if it were just an Apache routine, li

Re: Apache::ASP & HTTP's validation model

2000-02-14 Thread Dmitry Beransky
The immediate problem I see with this approach, is that $Response->LastModified() can only be called once per request. Consider a situation when a single asp file has multiple includes and each include is generated from a separate datasource. In this case, each include has to report back wit

Re: Apache::ASP & HTTP's validation model

2000-02-14 Thread Matt Sergeant
On Mon, 14 Feb 2000, Joshua Chamas wrote: > Aaron Ross wrote: > > > > hi Dmitry! > > > > Wouldn't it be great it someone came up with a general solution for this... > > some kind of logical class from which you could inherit and implement the > > necessary methods. > > > > There was an intere

Re: Apache::ASP & HTTP's validation model

2000-02-13 Thread Joshua Chamas
Aaron Ross wrote: > > hi Dmitry! > > Wouldn't it be great it someone came up with a general solution for this... > some kind of logical class from which you could inherit and implement the > necessary methods. > > There was an interesting thread about this problem with Mason. I'm sure it's >

Re: Apache::ASP & HTTP's validation model

2000-02-13 Thread Joshua Chamas
Dmitry Beransky wrote: > > (Joshua, promise to let me know when you get tired of my "ideas" and I'll > stop :-) > > >No, this wouldn't make sense for most scripts which will > >contain dynamic parts. > > What about a situation when the content is been dynamically generated from > a source that

Re: Apache::ASP & HTTP's validation model

2000-02-12 Thread Aaron Ross
hi Dmitry! Wouldn't it be great it someone came up with a general solution for this... some kind of logical class from which you could inherit and implement the necessary methods. There was an interesting thread about this problem with Mason. I'm sure it's come up before with ASP. The mod_pe

Re: Apache::ASP & HTTP's validation model

2000-02-11 Thread Dmitry Beransky
(Joshua, promise to let me know when you get tired of my "ideas" and I'll stop :-) >No, this wouldn't make sense for most scripts which will >contain dynamic parts. What about a situation when the content is been dynamically generated from a source that doesn't change often, but in an unpredic

Re: Apache::ASP & HTTP's validation model

2000-02-11 Thread Joshua Chamas
Dmitry Beransky wrote: > > Hi, > > Having searched through the documentation, source code and the archives I > found no references to how Apache::ASP works with the validation > model. I'm primarily talking about handling the 'Last-Modified' and > 'If-Modified-Since' headers. Does it at all? >

Apache::ASP & HTTP's validation model

2000-02-11 Thread Dmitry Beransky
Hi, Having searched through the documentation, source code and the archives I found no references to how Apache::ASP works with the validation model. I'm primarily talking about handling the 'Last-Modified' and 'If-Modified-Since' headers. Does it at all? Cheers Dmitry --- Dmitry Beransky