perl-modperl-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug MacEachern <do...@pobox.com>
Subject RE: cvs commit: modperl/t/net/perl file.pl
Date Mon, 03 Jan 2000 06:00:17 GMT
On Fri, 31 Dec 1999, Ask Bjoern Hansen wrote:

> On Thu, 30 Dec 1999, Eric Cholet wrote:
> 
> > >   +- maybe $r->no_cache should also set 
> > >   +  $headers_out->{'Pragma'} = $headers_out->{'Cache-control'} = 'no-cache';
> > >   +
> > 
> > I'm in favor of this one, been doing that everywhere I don't want pages
> > cached, this seems to be the only way to deal with broken clients.
> 
> I think it's a bad idea. I would favor it to be changed in Apache, but I
> don't think mod_perl should change the Apache APIs behavior.

$r->no_cache is near useless without setting Pragma and Cache-control.
there are far more people writing Perl Apache modules than C, I see
nothing wrong with saving confusion for the Perl users.  besides, it
wouldn't be the first time mod_perl has molded the C api to be more
Perl-ish.  on top of that, less Perl ops == faster, shaving a little here
and there adds up to decent savings.


Mime
View raw message