Re: Cache Control

2010-05-13 Thread André Warnier
sending with a browser plugin, LWP, or telnet. If the cache control headers are being sent but the browser is ignoring them, try setting an Expires header. For whatever it may help to say this : in my experience with many customers and many corporate browsers and web firewalls/proxies, th

Re: Cache Control

2010-05-13 Thread Perrin Harkins
er plugin, LWP, or telnet.  If the cache control headers are being sent but the browser is ignoring them, try setting an Expires header. - Perrin

Re: Cache Control

2010-05-12 Thread Perrin Harkins
On Wed, May 12, 2010 at 7:21 PM, Michel Jansen wrote: > I wrote a mod-perl handler with Apache2::RequestRec and i am trying to > control the caching of the pages. Caching by the browser, or by a proxy server in between? How are you testing to see if the page is cached? - Perrin

Cache Control

2010-05-12 Thread Michel Jansen
Hello, I wrote a mod-perl handler with Apache2::RequestRec and i am trying to control the caching of the pages. I am using: $r->no_cache(1); $r->err_headers_out->set(Pragma => 'no-cache'); $r->content_type('text/html'); $r->print($template->output()); return Apache2::Const::OK;

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

Redirects and Cache-Control

2009-04-09 Thread Justin Wyllie
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. Is there som