perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Young <gyo...@laserlink.net>
Subject RE: FW: no_cache & pragma/cache-control headers : confusion
Date Wed, 18 Apr 2001 11:24:04 GMT


> -----Original Message-----
> From: Doug MacEachern [mailto:dougm@covalent.net]
> Sent: Tuesday, April 17, 2001 5:58 PM
> To: Geoffrey Young
> Cc: 'dev@perl.apache.org'
> Subject: Re: FW: no_cache & pragma/cache-control headers : confusion
> 
> 
> On Tue, 10 Apr 2001, Geoffrey Young wrote:
> 
> > +    else {
> > +       ap_table_unset(r->headers_out, "Pragma");
> > +       ap_table_unset(r->headers_out, "Cache-control");
> > +    }
> 
> thanks, applied.  but changed to 'else if (items > 1)', so 
> '$r->no_cache'
> without a set value does not trigger the unsetting.

right - thanks for that.

> 
> also wondering, can the `Pragma' header used for anything other than
> 'no-cache' ?  don't want to wipe out something we shouldn't be.

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.32

looks like it can be used with no-cache or a self-implemented extension, but
I may not be reading it right.

--Geoff

> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
> For additional commands, e-mail: dev-help@perl.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message