Re: [Phplib-users] How to disable browser caching
Brought to you by:
nhruby,
richardarcher
|
From: Mikhail A. <ma...@lb...> - 2002-04-01 19:40:33
|
To resolve this problem, we've compiled apache with mod_headers enabled:
(--activate-module=src/modules/standard/mod_headers.c),
and added something along the following lines into httpd.conf:
<Directory />
Options FollowSymLinks
AllowOverride None
Header append Pragma "no-cache"
Header append Cache-Control "no-cache, must-revalidate, max_age=0"
Header append Expires "0"
</Directory>
This solved the problem of stale pages being displayed in Netscape (and
BTW, it wasn't simply that you couldn't see the HTML source of
POST-created documents, but you couldn't print those documents -- the
printer returned a page with the same old "document has expired" message.
To be honest, I am not completely sure why this way of sending the
no-cache pragma header is better than the way PHPLIB does it when you set
allowcache=no , but for some reason it seemed that the latter was entirely
ignored by Netscape 4.x Any ideas on this ?
M.
On Thu, 28 Mar 2002, Lars Heuer wrote:
> Hi,
>
> > I have been to sites where, when you click on the browser's back button, you
> > are given a message that says "this page has expired" and you are thereby
>
> This is just a Netscape Bug if you send data via POST.
>
> > but that doesn't seem to do any good. Does anybody know how to accomplish
> > this?
>
> Use NN 4.x :-))
>
> Regards,
> Lars
>
> --
> quiXS! | http://www.quixs.com
>
>
> _______________________________________________
> Phplib-users mailing list
> Php...@li...
> https://lists.sourceforge.net/lists/listinfo/phplib-users
>
|