Click to See Complete Forum and Search --> : IE Refresh :( sucks


Anon
04-21-2001, 03:25 PM
The setup I am using is IE5, PHP 4.0.1, Xitami and mySQL server. Great. Yes I do use IE and like it.

At the moment.

When you refresh a page in IE it checks and only reloads the page IF anything has changed. My problems is I write to a database; great; but when i open the read page _nothing_ has changed according to IE. If i change a borderwisth in the PHP file it works. Else it doesnt.

Has anyone else had this problem and can anyone fix it. Please :) I luv u guys.

irc-html
04-22-2001, 12:56 AM
What I suppose you can do is go in to
Tools --> Internet Options --> Settings (Temporary Internet Files).

Change "Check for newer version of stored pages..." to "Everytime you visit this page."

That should fix it.

Best Regards,

Kenneth Schwartz

Anon
04-22-2001, 11:53 AM
Hi Kiwi

If you want to prevent caches (proxies, such as Squid, or clients, such as Internet Explorer and Netscape) from storing PHP documents and add the following headers to your script:

Header("Cache-control: private, no-cache");
Header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); # Past date
Header("Pragma: no-cache");

From http://php.weblogs.com/stories/storyReader$550

-- John

Anon
04-23-2001, 10:10 AM
A quicker way to refresh your page is to force it to refresh.
When you refresh hold down the SHIFT button and either click the refresh button or hit F5. That should force the browser to reload no matter what.


Indy

Anon
04-23-2001, 03:01 PM
Kewel. Thanks. They all work :) I was looking to make sure that no-one else had this problem so I will be using the header method :) Thanks all of you.

matto
04-24-2001, 10:45 AM
On some pages your visitors will want to click on the same link several times in order to reload some random-generated or very often changing content.

In this case, page caching can easily be prevented if you generate a random number/string and concatenate it to the link as a dummy parameter:

<a href=mypage.php?randomnr=<? echo $rnr; ?>>

So the link will always be different.

I use this trick on
www.stressnetz.com/glueckskekse/glueckskekse.php (the page is in german) where you can click on "another one" / "noch einen".

Anon
08-09-2001, 05:58 PM
Try this:

<%
' Set caching options for all pages sent to browser. No pages will be cached on the browser.
Response.Expires = -1
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.AddHeader "Expires", "Tue, 1 Jan 1980 12:00:00 GMT"
%>

Anon
08-10-2001, 06:01 AM
Is that code you gave me ASP (yes) so why is it posted in a PHP forum? (Thanks for trying anyway)

Jon

Anon
03-08-2002, 10:02 AM
i am deleteing items on the screen listed in a array using a delete button, when i hit the delete button
to delete everything works fine, but when i
hit the ie5 refresh button the items on the screen continue to be deleted each time i hit the refresh button. in other words the even though i issue the unset command for the delete button the the refresh button set the delete button back to being pushed. how do i set the delete button backed to being not pushed.