I've a note in the guide to check the correctness of the following
section.  I have these 2 questions:

1. Should all three headers be always sent?
2. Should $r->no_cache(1) be used for non-2xx responses?

Thanks!

=head1 Cache Control for Regular and Error Modes

To disable the client response caching these HTTP headers should be
used:

  Pragma: no-cache
  Cache-control: no-cache
  Expires: Wed, 21 Mar 2001 00:28:13 GMT

where the I<Expires> field is set to the same date and time as the
original request.

For normally generated response use:

  $r->header_out("Pragma","no-cache");
  $r->header_out("Cache-control","no-cache");
  $r->no_cache(1);

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);




_____________________________________________________________________
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://logilune.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/


Reply via email to