View Full Version : Stop Cache

08-07-2007, 07:06 PM
Didnt know if this should be in DBS support, But it could be used for many things, so i posted here..

On a script ive made, an user verification script, the image allways stays the same, in FF it doesnt and image destroy function does the trick..... and the cache isnt stored.

But in IE, the image is allways the same but it has different hidden values, so what the user types in will allways be wrong seeing as there seeing the wrong image.

Ive tried obvious things like...

header("Cache-control: no-cache");
header("Expires: " . gmdate("D, d M Y H:i:s") . " GMT");

Doesnt work in IE still :-(

Any idea what will stop cache all together on the page?


08-09-2007, 03:00 AM
Something like this should work:

Header( "Last-Modified: " . gmdate( "D, j M Y H:i:s" ) . " GMT" );
Header( "Expires: " . gmdate( "D, j M Y H:i:s", time() ) . " GMT" );
Header( "cache-Control: no-store, no-cache, must-revalidate" ); // HTTP/1.1
Header( "cache-Control: post-check=0, pre-check=0", FALSE );
Header( "Pragma: no-cache" ); // HTTP/1.0

I didn't have a chance to test it however, but give it a try and let us know.

08-09-2007, 09:41 AM
Nope, Still doesnt work in IE :|

08-09-2007, 02:59 PM
Which version of internet exploder are you testing with?

08-10-2007, 02:59 AM
Maby try this

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-cache, must-revalidate” );
header( “Pragma: no-cache” );

08-10-2007, 04:13 PM
Which version of internet exploder are you testing with?

Well the newest one, But does it matter? It needs to clear cache for all browsers...

08-10-2007, 04:55 PM
Yh :|

08-10-2007, 05:19 PM
Which version of internet exploder are you testing with?

internet exploder is this a new web browser...... lol o/j

08-13-2007, 02:01 PM
Guess noone knows :cry:

08-13-2007, 04:22 PM
im sorry mate if i new believe me i would tell you.

$$ ?????? $$
08-17-2007, 06:54 PM
if you dont know then why add a post :|

08-17-2007, 07:07 PM
i can ask you the same question right now.