okay, now you say that his lines should tell the browser to reload from server instead of from cache. That was exactly what I was after except that this somehow does not work for me.
Not with, IE6, Netscape7 or mozilla 1.4a....
I really need some help with this coz this is my last problem with the job I am doing now 😃
situation: got this portal that has just a link to change language. this calls a file that sets and resets a few variables and then reloads to display the exact same page as it was showing. This all works and is verefied 🆒
now the problem comes when user hits backspace and then the language switch link. the browser reloads from cache the old page and there for a variable that collects the URL of current document is not updated on the server (all php and html).
The changing of language var is good, page reloads like it should except it reloads the page from which backspace was executed. Logically this should happen, that I realize except when you tell the browser not to cache it, then it should reload the page (and therefore allow the php to update the URL) from server.
the headers to stop caching i use:
header("Content-Type:text/html; charset=iso-8859-2");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
I have tried using a few, one, all and any combination 🙂 don't work for one second...
then I added META tags:
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="Expires" CONTENT="Tue, Jul 26 1997 05:00:00 GMT">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
as can be found everywhere as suggestions to help browsers NOT cache the page... still browser gets page directly from cache.
Problem I have is that I am working on a server that I have no control over, I can not edit any PHP settings on this server so I have to try and get this done from inside my code....
does anybody have an idea how to solve this?
There is one solution I have found but don't want to use for it is rather impolite to visitors :rolleyes:
this would be a javasript:
javascript:window.history.forward(1);
this nicely stops backspace and back buttons from working completely 😃 which is ofcourse not nice.....
this problem occurs on all pages, all of them are php and all of them take at least one argument and sometimes even more, counting up to 15 or sth on some pages. this is a portal done before by a diffirent team, I am just implementing extra funcitonality.... anyway, I am nicely confused now and am running out of time and ideas :mad: okay, now you say that his lines should tell the browser to reload from server instead of from cache. That was exactly what I was after except that this somehow does not work for me.[/COLOR]