Date: 01/19/01
- Next message: Matt Friedman: "[phplib] Is PEAR ready?"
- Previous message: Paul Smith: "RE: [phplib] IE problems"
- In reply to: Paul Smith: "[phplib] IE problems"
- Next in thread: nathan r. hruby: "Re: [phplib] IE problems"
- Reply: nathan r. hruby: "Re: [phplib] IE problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
This is a known issue and has been discussed many times here on the
PHPLIB mailling list. The problem is that Internet Explorer 5 does not
follow the Expires, Last-Modified and/or Pragma headers which tell it
that the page has expired and needs to be reloaded. Instead, it tries
to make the user think that it is much faster than it is by using a
cached copy of the page.
However, MSIE 5 does pay attention to the following headers, which tell
it not to cache the page:
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0"); // damnable IE5
As a result, I usually combine the 2 above headers with the 3 below to
make sure every imaginable browser does not cache a particular page.
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // date in past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Pragma: no-cache"); // HTTP/1.0
I do this using PHPLIB 7.0. The more recent versions of PHPLIB I
believe include similar code and should work right out of the box.
..chris
> -----Original Message-----
> From: Paul Smith [mailto:paul <email protected>]
> Sent: Friday, January 19, 2001 12:00 PM
> To: phplib <email protected>
> Subject: [phplib] IE problems
>
>
> This seems like a very basic and fundamental issue, but here goes:
>
> I've noticed that Internet Explorer (specifically, version
> 5.x on Win98)
> doesn't always update pages correctly that are refreshed and
> contain session
> variables.
>
> In other words, if I have a session variable, like $s, and it
> is supposed to
> increment on the server side, echo $s++, IE will show the same,
> non-incrementing value unless I "force" a reload (holding
> down CTRL and
> hitting "reload").
>
> What to do?
>
> Paul
>
> --
> Paul A. Smith | InfoTech Designer
> Center For Neighborhood Technology
> paul <email protected> | www.cnt.org
> 773.278.4800 x138
> 2125 W North Ave
> Chicago IL 60647
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: phplib-unsubscribe <email protected>
> For additional commands, e-mail: phplib-help <email protected>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Matt Friedman: "[phplib] Is PEAR ready?"
- Previous message: Paul Smith: "RE: [phplib] IE problems"
- In reply to: Paul Smith: "[phplib] IE problems"
- Next in thread: nathan r. hruby: "Re: [phplib] IE problems"
- Reply: nathan r. hruby: "Re: [phplib] IE problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

