David Wheeler wrote:

> Huh, according to the mod_perl guide:
> 
> 
>http://thingy.kcilink.com/modperlguide/correct_headers/2_1_3_Expires_and_Cache_Control.html
> 
> Those headers are not added by no_cache(1). But I see that, according to
> the mod_perl Changes file, those headers were added to the behavior of
> no_cache(1) in mod_perl 1.21_01. So perhaps the mod_perl guide should be
> changed from its current documentation:
> 
>   my $headers = $r->headers_out;
>   $headers->{'Pragma'} = $headers->{'Cache-control'} = 'no-cache';
>   $r->no_cache(1);
> 
> To simply:
> 
>   $r->no_cache(1).
> 
> Stas?


Thanks David, fixed in the cvs version.

_____________________________________________________________________
Stas Bekman             JAm_pH      --   Just Another mod_perl Hacker
http://stason.org/      mod_perl Guide   http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]  http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/

Reply via email to