> -----Original Message-----
> From: Louis-David Mitterrand [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 07, 2000 11:09 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: modperl workaround for bug in netscape-4.7x with Expires:
> headers?
> 
> 
> Hello,
> 
> When sending a POST request netscape-4.7 still caches the page and
> doesn't return the updated page with the POST results.
> 
> In which mod_perl *handler would it be more appropriate to insert code
> to the effect that:
> 
> if ($r->uri =~ /login/) {
>       $r->no_cache(1)
> }
> 

any time prior to calling $r->send_http_header() should work fine.  If you
already have a PerlTransHandler that you are using you could put it there.
Maybe others have an opinion as to the 'proper' place, but I have always
included in wherever it made sense at the time, usually in PerlHandler.

> This is to override the DefaultExpires directive on certain pages with
> forms.

you may also want to search the archives concerning NS and MSIE caching
behavior - IIRC lots of people have put a good amount of time into
investigating this issue and there was a decent thread maybe 4 or 5 months
ago discussing REDIRECT to prevent caching, expire headers, etc...

HTH

--Geoff

> 
> Thanks in advance,
> 
> -- 
> Louis-David Mitterrand - [EMAIL PROTECTED] - http://www.apartia.org
> 
> How's my posting?  Call 1-800-DEV-NULL
> 

Reply via email to