Isomerizer Posted August 7, 2007 Posted August 7, 2007 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? Thanks. Quote
Niteshade Posted August 9, 2007 Posted August 9, 2007 Re: Stop Cache 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. Quote
Isomerizer Posted August 9, 2007 Author Posted August 9, 2007 Re: Stop Cache Nope, Still doesnt work in IE :| Quote
Niteshade Posted August 9, 2007 Posted August 9, 2007 Re: Stop Cache Which version of internet exploder are you testing with? Quote
Guest Anonymous Posted August 10, 2007 Posted August 10, 2007 Re: Stop Cache 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” ); Quote
Isomerizer Posted August 10, 2007 Author Posted August 10, 2007 Re: Stop Cache 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... Quote
YoungGold Posted August 10, 2007 Posted August 10, 2007 Re: Stop Cache Which version of internet exploder are you testing with? internet exploder is this a new web browser...... lol o/j Quote
Isomerizer Posted August 13, 2007 Author Posted August 13, 2007 Re: Stop Cache Guess noone knows :cry: Quote
YoungGold Posted August 13, 2007 Posted August 13, 2007 Re: Stop Cache im sorry mate if i new believe me i would tell you. Quote
$$ ?????? $$ Posted August 17, 2007 Posted August 17, 2007 Re: Stop Cache if you dont know then why add a post :| Quote
YoungGold Posted August 17, 2007 Posted August 17, 2007 Re: Stop Cache i can ask you the same question right now. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.