Hi.

I'm trying to write a custom provider where I want to output the following two HTTP headers:

Pragma: private
Cache-Control: max-age=0

Tried the following code in the init() sub of my provider with no success:

my $r = $this->{apache};
$r->headers_out->set('Pragma', 'private');
$r->headers_out->set('Cache-Control', 'max-age=0');

I only want to open up the possibility of local client browser caching. No server side caching should take place so AxNoCache is still set to 'On'.

Any ideas as to how to achieve this would be greatly appreciated.

Kind regards,
--
Jan Bauer Nielsen
Center of Knowledge Technology, Technical Knowledge Center of Denmark
Anker Engelunds Vej 1, Postboks 777, 2800 Kongens Lyngby, Denmark
Direct: (+45) 4525 7221, [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to