Re: Redirects and Cache-Control

2009-04-09 Thread Dondi M. Stroma
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_

Re: Redirects and Cache-Control

2009-04-09 Thread Adam Prime
Justin Wyllie wrote: Hi I am trying to use: $headers = $r->headers_out; $r->no_cache(1); $headers->set( Location => url ); return REDIRECT. The first problem is this does not set the Cache-Control header. If instead of the redirect I output some content (200 ) then it does, correctly.