At 06:19 PM 09/03/2001, Graham Leggett wrote:
>Greg Marr wrote:
>
> > How exactly do you use Cache-Control directives so that the 
> content that
> > is cached is before includes are processed, and that when it is
> > retrieved from the cache, the includes are processed?  It just 
> doesn't
> > work that way.  In this case you have to put the includes before 
> the
> > cache.
>
>mod_cache and mod_include should have no knowledge of each other.

Exactly.  They shouldn't care in which order they are run, that 
should be up to the admin.  You're saying the opposite, that 
mod_cache should only be able to run after mod_include.

>mod_cache is interested in content going to the browser.

You're interested in having mod_cache only interested in content 
going to the browser.  There's a difference.

>There are already two caches in the loop (a transparent ISP cache, 
>and the browser cache) so if mod_include doesn't generate proper 
>Cache-Control: headers
>then mod_includes is broken already without any help from mod_cache.

This has absolutely nothing to do with using mod_cache to cache the 
page just before it is processed by mod_include, and processing the 
page retrieved from the cache using mod_include.

>I don't see any reason why mod_cache should interfere with 
>mod_include (or vice versa).

Apparently you do.

>mod_cache only cares about what is spat out at the end of the filter 
>chain

Why should it be restricted like that?  That makes it less useful.

>One of the fundamental design points about mod_cache was to separate 
>it from all other modules (specifically mod_proxy).  Tying mod_cache 
>behaviour to mod_include (or any other module) is a step backwards 
>in the design.

So why are you saying it should be done that way?  It should be able 
to be placed at any point in the filter chain.  Requiring it to come 
after mod_<whatever> is tying its behavior to mod_<whatever>, saying 
that mod_<whatever> must process the   file before it is cached.

-- 
Greg Marr
[EMAIL PROTECTED]
"We thought you were dead."
"I was, but I'm better now." - Sheridan, "The Summoning"

Reply via email to