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