You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl-cvs@perl.apache.org by Doug MacEachern <do...@pobox.com> on 2000/01/03 07:00:17 UTC
RE: cvs commit: modperl/t/net/perl file.pl
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.