Hi Jan,
It might be easier to handle this using Apache in either the httpd.conf
or a local .htaccess file. IIRC mod_expires and mod_headers are the
place to look.
Regards,
George.
On Fri, Apr 21, 2006 at 11:40:07AM +0200, Jan Bauer Nielsen wrote:
> 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]
>
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This e-mailĀ and any files and attachments transmitted with it are
confidential and/or privileged. They are intended solely for the use of
the intended recipient. Any views and opinions expressed are those of
individual author/sender and are not necessarily shared or endorsed by
The Irish Times Limited, its subsidiary Itronics Limited, or any
associated or related company. The content of this e-mail and any file
or attachment transmitted with it may have been changed or altered
without the consent of the author. If you are not the intended
recipient, please note that any review, dissemination, disclosure,
alteration, printing, circulation or transmission of this e-mail and/or
any file or attachment transmitted with it, is prohibited and may be
unlawful. If you have received this e-mail or any file or attachment
transmitted with it in error please notify the sender by return e-mail
or contact Itronics Limited, 4th floor, Ballast House, Aston Quay,
Dublin 2 or email [EMAIL PROTECTED]
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]