On Tue, 20 Mar 2001, Geoffrey Young wrote:

> > For normally generated response use:
> >
> >   $r->header_out("Pragma","no-cache");
> >   $r->header_out("Cache-control","no-cache");
> >   $r->no_cache(1);
>
> $r->no_cache(1) sets these headers for you - no need to set them yourself.
>
> >
> > If for some reason you need to use them in Error control code
> > (i.e. when sending some non-2xx response code) use:
> >
> >   $r->err_header_out("Pragma","no-cache");
> >   $r->err_header_out("Cache-control","no-cache");
> >   $r->no_cache(1);
>
> I don't think this is necessary
>
>   http://archive.covalent.net/perl/dev/2000/09/0042.xml

In fact it's well covered in here:
http://perl.apache.org/guide/correct_headers.html

Sometimes I myself get lost in all the amount of information the guide
includes... so I've removed this duplication section. Andreas Koenig's doc
is the right one to stick too.

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


Reply via email to