perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dondi M. Stroma" <dstr...@verizon.net>
Subject Re: Redirects and Cache-Control
Date Thu, 09 Apr 2009 20:15:38 GMT
Justin Wyllie wrote:
> I am trying to use:
>
> $headers = $r->headers_out;
> $r->no_cache(1);
> $headers->set( Location => url  );
> return REDIRECT.

You didn't specify your Apache/mod_perl version. For 2.x this is what I have 
and it works fine:

  $r->no_cache(1);
  $r->status(Apache2::Const::HTTP_MOVED_TEMPORARILY);
  $r->headers_out->add(Location => url);
  return Apache2::Const::OK; 


Mime
View raw message